summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-01-28 11:09:40 +0100
committeremkael <emkael@tlen.pl>2015-01-28 11:09:40 +0100
commit294ade87e85fa65847f87385b6b50f0f8352b51a (patch)
treebc744bfd5185ed4144af9f9fe5229667808b446e
parenta551524b8b2c3d012516f1cacf38fc99f2f642c9 (diff)
* regex delimiter fix
-rw-r--r--http/index.php2
1 files changed, 1 insertions, 1 deletions
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) {