diff options
author | emkael <emkael@tlen.pl> | 2015-01-28 11:08:50 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-01-28 11:08:50 +0100 |
commit | a551524b8b2c3d012516f1cacf38fc99f2f642c9 (patch) | |
tree | e31c4acb4a0925f250977c94ca62fe6b309ff062 | |
parent | b906d5eb0199625e8ae02545fdab2a151738da89 (diff) |
* preg_replace bugfix
-rw-r--r-- | http/index.php | 2 |
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) { |