String +-+ Causes Infinite Redirect
When a URL contains the string +-+ and the URL format uses + for spaces (there are probably other combinations too), an infinite redirect occurs.
Fixed in the current ZIP. In
vault/plugins.php, find:
Code:
$pathbits = preg_split('#(\/|:|\?|=|\&|\.|-|_)#', $path, -1, PREG_SPLIT_DELIM_CAPTURE);
Replace with:
Code:
$pathbits = preg_split('#(\/|:|\?|=|\&|\.|-|_|\s)#', $path, -1, PREG_SPLIT_DELIM_CAPTURE);
In
vault/wiki.php, find:
Code:
// shorten strings of SEO replacement
$text = trim(preg_replace('#(' . preg_quote($badchars['+']) . ')+#', $badchars['+'], $text), $badchars['+']);
Replace with:
Code:
$text = preg_replace('#(' . preg_quote($badchars['+']) . ')+#', $badchars['+'], $text);
if (strlen($text) > 1)
{
// shorten strings of SEO replacement
$text = trim($text, $badchars['+']);
}