1
0

Implemented slash fix suggested in forums by Timbalu

This commit is contained in:
Jude Anthony
2006-12-18 16:04:20 +00:00
parent 740a740092
commit 08b8be6e15

View File

@ -715,7 +715,7 @@ function serendipity_currentURL($strict = false) {
}
$uri['path'] = preg_replace('@^' . preg_quote($serendipity['serendipityHTTPPath']) . '@i', ($strict ? '/' : ''), $uri['path']);
$uri['path'] = preg_replace('@^(&)?' . preg_quote($serendipity['indexFile']) . '(&)@i', '', $uri['path']);
$url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?' . $uri['path'] . $qst;
$url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?/' . $uri['path'] . $qst;
$url = str_replace(
array(
$serendipity['indexFile'] . '&',