From: garvinhicking Date: Wed, 25 Jan 2006 10:16:22 +0000 (+0000) Subject: fix repetition of duplicate index files X-Git-Tag: 1.0~145 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1d4d323cac856d40bd749e5d45bb4b536579e316;p=s9y.git fix repetition of duplicate index files --- diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php index 54dc42c..e273f5f 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -688,6 +688,7 @@ function serendipity_currentURL() { $qst = '&' . str_replace('&', '&', $uri['query']); } $uri['path'] = preg_replace('@^' . preg_quote($serendipity['serendipityHTTPPath']) . '@i', '', $uri['path']); + $uri['path'] = preg_replace('@^' . preg_quote($serendipity['indexFile']) . '@i', '', $uri['path']); $url = $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?' . $uri['path'] . $qst; $url = str_replace( array(