]> git.mjollnir.org Git - s9y.git/commitdiff
Implemented slash fix suggested in forums by Timbalu
authorslothman <slothman>
Mon, 18 Dec 2006 16:04:20 +0000 (16:04 +0000)
committerslothman <slothman>
Mon, 18 Dec 2006 16:04:20 +0000 (16:04 +0000)
include/functions_permalinks.inc.php

index 3bef5fc946ee231f36d0faeab48aa30a790f9f8b..a25440f3302093067b9798d31e7c03b1aafd69cc 100644 (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('@^(&amp;)?' . preg_quote($serendipity['indexFile']) . '(&amp;)@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'] . '&amp;',