diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 23:09:51 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-21 12:17:59 +1000 |
| commit | 8b7a1d511c33dea2a8b15be4f033e02fe059897e (patch) | |
| tree | b1340880d46b185ed4bb09b7f27b864ef3074ee3 /inc/functions.php | |
| parent | d6f5fc28ce1263fd40a7a1c6396055d152dae959 (diff) | |
Bugfix: with previous commit
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 08e5433f..bd255b35 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -336,7 +336,7 @@ function boardTitle($uri) { function purge($uri) { global $config, $debug; - if (preg_match($config['referer_match'], $config['root'])) { + if (preg_match($config['referer_match'], $config['root']) && isset($_SERVER['REQUEST_URI'])) { $uri = (str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) == '/' ? '/' : str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) . '/') . $uri; } else { $uri = $config['root'] . $uri; |
