summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-01-28 11:08:50 +0100
committeremkael <emkael@tlen.pl>2015-01-28 11:08:50 +0100
commita551524b8b2c3d012516f1cacf38fc99f2f642c9 (patch)
treee31c4acb4a0925f250977c94ca62fe6b309ff062
parentb906d5eb0199625e8ae02545fdab2a151738da89 (diff)
* preg_replace bugfix
-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) {