Re: cvs: pearweb / package.php package.xml /public_html package-stats.php
| From: | Laurent Laville | Date: | Thu, 14 May 2009 17:43:19 +0000 |
| Subject: | Re: cvs: pearweb / package.php package.xml /public_html package-stats.php | ||
| References: | 1 | Groups: | php.pear.cvs php.pear.core |
| Request: | Send a blank email to pear-core+get-8406@lists.php.net to get a copy of this message | ||
Christian Weiske a écrit :
cweiske Thu May 14 06:24:46 2009 UTCDid someone else noticed that there is a small javascript error missing : in conditional expression http://pear.php.net/package-stats.php?pid=304&cid=25 Line 96 function reloadMe() {Modified files: /pearweb package.php package.xml /pearweb/public_html package-stats.php Log:Fix XSS issue
- var newLocation = '<?php echo strip_tags($_SERVER['PHP_SELF']); ?>?'
+ var newLocation = <?php echo json_encode($_SERVER['PHP_SELF']); ?>?
+ 'cid='
? should be inside the string not outside : perharps like this
var newLocation = <?php echo json_encode($_SERVER['PHP_SELF'].'?'); ?>
+ 'cid='