diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 23:09:51 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-05-05 18:12:20 +1000 |
| commit | 24cc47791cb5b3bdc50e25e79b81adab5076618a (patch) | |
| tree | d28372cbcb72f39a8308c02d6b80033cb2887f40 /inc/functions.php | |
| parent | 2082fcde2485e36f650515370740db2741fe5c7b (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 d9af4e6a..3ca5f599 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -339,7 +339,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; |
