diff options
author | canyonknight <canyonknight@gmail.com> | 2012-11-21 15:56:56 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-11-24 13:20:44 +0100 |
commit | c7d20163a4feaeed6e8c16a1e0a076e8e0c931aa (patch) | |
tree | 1508933e22ee35e42eab18800afddc5af6253ec7 /web | |
parent | e383205edabff92f7f7c7750cd0038774c823c6b (diff) | |
download | aur-c7d20163a4feaeed6e8c16a1e0a076e8e0c931aa.tar.gz aur-c7d20163a4feaeed6e8c16a1e0a076e8e0c931aa.tar.xz |
index.php: Move voter page token check to switch control structure
Voter page token check takes place in the same way as other
existing token checks. Move the check for consistency.
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r-- | web/html/index.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/web/html/index.php b/web/html/index.php index 3b46ab9e..a197d0bc 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -22,12 +22,6 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { } if (!empty($tokens[3])) { - if ($tokens[3] == 'voters') { - $_GET['ID'] = pkgid_from_name($tokens[2]); - include('voters.php'); - return; - } - /* TODO: Remove support for legacy URIs and move these * actions to separate modules. */ switch ($tokens[3]) { @@ -55,6 +49,10 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { case "merge": include('pkgmerge.php'); return; + case "voters": + $_GET['ID'] = pkgid_from_name($tokens[2]); + include('voters.php'); + return; default: header("HTTP/1.0 404 Not Found"); include "./404.php"; |