Remove $config['url_regex'];
This commit is contained in:
1 parent
b038e0b244
commit
32c999346f
3 files changed
+2
-5
No files matched your search
+1
-1
@@ -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'], '/') .
|
||||
'(' .
|
||||
|
||||
Reference in new issue
Block a user