From a551524b8b2c3d012516f1cacf38fc99f2f642c9 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 28 Jan 2015 11:08:50 +0100 Subject: * preg_replace bugfix --- http/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/index.php') 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) { -- cgit v1.2.3