aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index 38e5a0d..dd2c5d9 100644
--- a/index.php
+++ b/index.php
@@ -45,6 +45,9 @@ try {
}
else $route = '';
+
+ $pieces = parse_url($route);
+ $route = $pieces['path'];
$route = rtrim($route, '/');
// generic template