diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php index c49e6bd7..27cf3bc7 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -729,7 +729,7 @@ function serendipity_currentURL($strict = false) { $url); // Kill possible looped repitions and bad characters which could occur if ($strict) { - $url = preg_replace('@(//+), '/', $url); + $url = preg_replace('@(//+)@', '/', $url); } return $url;