]> git.mjollnir.org Git - s9y.git/commitdiff
fix repetition of duplicate index files
authorgarvinhicking <garvinhicking>
Wed, 25 Jan 2006 10:16:22 +0000 (10:16 +0000)
committergarvinhicking <garvinhicking>
Wed, 25 Jan 2006 10:16:22 +0000 (10:16 +0000)
include/functions_permalinks.inc.php

index 54dc42c4d8083d3e2aaee4d117f51d020fcab083..e273f5f42dbeeee32179690b6af79512e17abda5 100644 (file)
@@ -688,6 +688,7 @@ function serendipity_currentURL() {
         $qst = '&amp;' . str_replace('&', '&amp;', $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(