summaryrefslogtreecommitdiffstats
path: root/web/html/voters.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2014-01-20 20:42:44 -0500
committerLukas Fleischer <archlinux@cryptocrack.de>2014-01-22 18:27:42 +0100
commit1e9d539acfb609dd7a6f085295f0d068d69cb077 (patch)
tree3be78a61115771818f3284bbb632245119ff2c73 /web/html/voters.php
parent81d4cc13dcae2f159ed937d4ce41e1df7d3c82b0 (diff)
downloadaurweb-1e9d539acfb609dd7a6f085295f0d068d69cb077.tar.xz
Further optimize voters.php to only need the package name
* Extends changes in 81d4cc13dcae2f159ed937d4ce41e1df7d3c82b0 * Modify getvotes() to use the package name rather than package ID * Rename getvotes() to votes_for_pkgname() for clarity with new changes * Modify routing framework and links to now use package names for voters.php Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/voters.php')
-rw-r--r--web/html/voters.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/voters.php b/web/html/voters.php
index 42fe2b5..9a0bdd3 100644
--- a/web/html/voters.php
+++ b/web/html/voters.php
@@ -4,8 +4,8 @@ include_once('aur.inc.php');
include_once('pkgfuncs.inc.php');
$SID = $_COOKIE['AURSID'];
-$pkgname = pkgname_from_id(intval($_GET['ID']);
-$votes = getvotes($pkgid);
+$pkgname = htmlspecialchars($_GET['N']);
+$votes = votes_for_pkgname($pkgname);
$atype = account_from_sid($SID);
html_header(__("Voters"));