1
0

Remove / patch because it creates more problems than it solves. Real fix should be to properly set the serendipityHTTPPath in the configuration on blogs that run on the root

This commit is contained in:
Garvin Hicking
2006-12-28 20:25:23 +00:00
parent 93c465aa66
commit 1a23c59235

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'] . '&',