diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 05:46:08 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 05:46:08 +1000 |
| commit | 32c999346f3a4919f527df7465e5989afba6e7bc (patch) | |
| tree | 18bf3e4ee87dd0da8bcd18e6243cf1fc07153c30 /inc/functions.php | |
| parent | b038e0b244175d07adf5687595ce0b9ebedbe9e2 (diff) | |
Remove $config['url_regex'];
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 5a95c851..377607fb 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -94,7 +94,7 @@ function loadConfig() { if (!isset($config['referer_match'])) if (isset($_SERVER['HTTP_HOST'])) { $config['referer_match'] = '/^' . - (preg_match($config['url_regex'], $config['root']) ? '' : + (preg_match('@^https?:@//', $config['root']) ? '' : 'https?:\/\/' . $_SERVER['HTTP_HOST']) . preg_quote($config['root'], '/') . '(' . |
