summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-18 02:52:06 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-18 02:52:06 +1100
commit9d5482874a6d3520486d8c12534bf8b71c8a243e (patch)
tree895a8c1f9039b2a8dd7e414d60f72bb550448f32 /inc
parent796a5445601c187bb7fa867d9c5b152ac8fd9797 (diff)
Compressed URL_MATCH
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/config.php b/inc/config.php
index 60c8d5c2..b83ce5e0 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -220,16 +220,13 @@
define('ALWAYS_NOKO', false, true);
define('URL_MATCH', '/^' .
- (@$_SERVER['HTTPS']?'https':'http').':\/\/'.$_SERVER['HTTP_HOST'] .
+ (@$_SERVER['HTTPS']?'https':'http').':\/\/'.$_SERVER['HTTP_HOST'] . preg_quote(ROOT, '/') .
'(' .
- preg_quote(ROOT, '/') .
str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) .
'|' .
- preg_quote(ROOT, '/') .
str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) .
preg_quote(FILE_INDEX, '/') .
'|' .
- preg_quote(ROOT, '/') .
str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) .
str_replace('%d', '\d+', preg_quote(FILE_PAGE, '/')) .
')$/', true);