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:
@ -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'] . '&',
|
||||
|
Reference in New Issue
Block a user