summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_comments.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-03-30 10:49:51 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-30 10:49:51 +0200
commit3aa2240b7dc281b37716a29025b08baf1318d059 (patch)
tree51b7249961f07ba392fb76b4698130fdac797182 /web/template/pkg_comments.php
parent11366b8a1a156fa645c4f24d4c3bf939e064d4c9 (diff)
downloadaur-3aa2240b7dc281b37716a29025b08baf1318d059.tar.gz
aur-3aa2240b7dc281b37716a29025b08baf1318d059.tar.xz
Fix XSS vulnerabilities in package comment templates.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r--web/template/pkg_comments.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index 8e64e11a..aed9ca8b 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -39,7 +39,7 @@ while (list($indx, $carr) = each($comments)) { ?>
$count = package_comments_count($_GET['ID']);
if ($count > 10 && !isset($_GET['comments'])) {
echo '<div class="pgbox">';
- echo '<a href="'. $_SERVER['PHP_SELF'] . '?ID=' . $_REQUEST['ID'] . '&comments=all">'. __('Show all %s comments', $count) . '</a>';
+ echo '<a href="'. $_SERVER['REQUEST_URI'] . '&comments=all">'. __('Show all %s comments', $count) . '</a>';
echo '</div>';
}
?>