mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix XSS vulnerabilities in "web/html/voters.php".
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
55eb55a75f
commit
2eb45e7d9e
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ function getvotes($pkgid) {
|
|||
|
||||
$SID = $_COOKIE['AURSID'];
|
||||
|
||||
$pkgid = $_GET['ID'];
|
||||
$pkgid = intval($_GET['ID']);
|
||||
$votes = getvotes($pkgid);
|
||||
$account = account_from_sid($SID);
|
||||
|
||||
|
@ -29,7 +29,7 @@ if ($account == 'Trusted User' || $account == 'Developer') {
|
|||
$username = $row['Username'];
|
||||
?>
|
||||
<a href="account.php?Action=AccountInfo&ID=<?php echo $uid ?>">
|
||||
<?php echo $username ?></a><br />
|
||||
<?php echo htmlspecialchars($username) ?></a><br />
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue