mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
Bugfix: with previous commit
This commit is contained in:
parent
36b8397f9f
commit
2448900bfe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user