summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 23:05:47 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 23:10:27 +0200
commitf2301ca922cd5088b7889a508f1ff9518f2f3a73 (patch)
treeca1be4a5ae5b337cc0b9c68666c440ff812ddbef /web/lib
parent6790b36247be55d7cc9fdd6a7880900e9c95a58d (diff)
downloadaur-f2301ca922cd5088b7889a508f1ff9518f2f3a73.tar.gz
aur-f2301ca922cd5088b7889a508f1ff9518f2f3a73.tar.xz
routing.inc.php: rtrim() path in get_route()
Return the correct route -- even if a "/" is appended to the URI. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/routing.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/lib/routing.inc.php b/web/lib/routing.inc.php
index e8a2deb7..bbcb9e25 100644
--- a/web/lib/routing.inc.php
+++ b/web/lib/routing.inc.php
@@ -22,6 +22,7 @@ $PKG_PATH = '/packages';
function get_route($path) {
global $ROUTES;
+ $path = rtrim($path, '/');
if (isset($ROUTES[$path])) {
return $ROUTES[$path];
} else {