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 5f92fbf8bb
commit a78fc9ba32

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['serendipityHTTPPath']) . '@i', ($strict ? '/' : ''), $uri['path']);
$uri['path'] = preg_replace('@^(&)?' . preg_quote($serendipity['indexFile']) . '(&)@i', '', $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( $url = str_replace(
array( array(
$serendipity['indexFile'] . '&', $serendipity['indexFile'] . '&',