diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 05:48:37 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 05:48:37 +1000 |
| commit | 4cd23896559dbbcd0bae5746ee458ece36be7a65 (patch) | |
| tree | bce6ab683c6165b458d643726f1c7fabc908d5de /inc/functions.php | |
| parent | 961e3d3fe0e0abb7be956532091372ce7a00bafa (diff) | |
lol
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 377607fb..4cbd8625 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('@^https?:@//', $config['root']) ? '' : + (preg_match('@^https?://@', $config['root']) ? '' : 'https?:\/\/' . $_SERVER['HTTP_HOST']) . preg_quote($config['root'], '/') . '(' . |
