From 294ade87e85fa65847f87385b6b50f0f8352b51a Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 28 Jan 2015 11:09:40 +0100 Subject: * regex delimiter fix --- http/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http') diff --git a/http/index.php b/http/index.php index 738c7d0..eac2162 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