mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix XSS vulnerabilities in package comment templates.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
11366b8a1a
commit
3aa2240b7d
2 changed files with 3 additions and 3 deletions
|
@ -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>';
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue