From 1d4d323cac856d40bd749e5d45bb4b536579e316 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 25 Jan 2006 10:16:22 +0000 Subject: [PATCH] fix repetition of duplicate index files --- include/functions_permalinks.inc.php | 1 + 1 file changed, 1 insertion(+) 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( -- 2.39.5