summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/index.php b/http/index.php
index 700951d..738c7d0 100644
--- a/http/index.php
+++ b/http/index.php
@@ -27,7 +27,7 @@ function fetch_with_user_agent_spoof($targetFile, $sourceUrl) {
}
// parse requested path (after rewrite)
-$url = parse_url(preg_replace('/^' . preg_quote(BASE_PATH) . '/', $_SERVER['REQUEST_URI']));
+$url = parse_url(preg_replace('/^' . preg_quote(BASE_PATH) . '/', '', $_SERVER['REQUEST_URI']));
$path = array_values(array_filter(explode('/', $url['path'])));
if ($path) {