mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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>
This commit is contained in:
parent
6790b36247
commit
f2301ca922
2 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ $PKG_PATH = '/packages';
|
|||
function get_route($path) {
|
||||
global $ROUTES;
|
||||
|
||||
$path = rtrim($path, '/');
|
||||
if (isset($ROUTES[$path])) {
|
||||
return $ROUTES[$path];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue