Browse Source

Fix last commit: purge() issue

pull/40/head
Michael Foster 9 years ago
parent
commit
b22bcdecf9
  1. 5
      inc/functions.php

5
inc/functions.php

@ -366,6 +366,11 @@ function boardTitle($uri) {
function purge($uri) {
global $config, $debug;
// Fix for Unicode
$uri = urlencode($uri);
$uri = str_replace("%2F", "/", $uri);
$uri = str_replace("%3A", ":", $uri);
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 {

Loading…
Cancel
Save