|
@ -94,7 +94,7 @@ function loadConfig() { |
|
|
if (!isset($config['referer_match'])) |
|
|
if (!isset($config['referer_match'])) |
|
|
if (isset($_SERVER['HTTP_HOST'])) { |
|
|
if (isset($_SERVER['HTTP_HOST'])) { |
|
|
$config['referer_match'] = '/^' . |
|
|
$config['referer_match'] = '/^' . |
|
|
(preg_match('@^https?:@//', $config['root']) ? '' : |
|
|
(preg_match('@^https?://@', $config['root']) ? '' : |
|
|
'https?:\/\/' . $_SERVER['HTTP_HOST']) . |
|
|
'https?:\/\/' . $_SERVER['HTTP_HOST']) . |
|
|
preg_quote($config['root'], '/') . |
|
|
preg_quote($config['root'], '/') . |
|
|
'(' . |
|
|
'(' . |
|
|