From d234f55a26aeafe99c27f743e9dca5b231133e8d Mon Sep 17 00:00:00 2001
From: Judebert <slothman@users.sourceforge.net>
Date: Mon, 18 Dec 2006 16:04:20 +0000
Subject: [PATCH] Implemented slash fix suggested in forums by Timbalu

---
 include/functions_permalinks.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php
index 3bef5fc9..a25440f3 100644
--- a/include/functions_permalinks.inc.php
+++ b/include/functions_permalinks.inc.php
@@ -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;',