From: garvinhicking Date: Thu, 15 Mar 2007 10:05:04 +0000 (+0000) Subject: Fix dot character problem in permalinks like the freetag plugin not giving proper... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5f490de6d93977ccf3103d3c8bda4fa50a1bd318;p=s9y.git Fix dot character problem in permalinks like the freetag plugin not giving proper pagination --- diff --git a/docs/NEWS b/docs/NEWS index 5ae1f04..54d1f4b 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -5,7 +5,8 @@ Version 1.2 () * Fix permalink patterns for some cases to properly detect pagination variables instead of interpreting search words - as those (garvinhicking) + as those, and fix problems when "." appears within permalinks + (garvinhicking) * Improve performance of displaying the complete archive. Instead of year*months SQL queries, only one query is now used. diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php index 3bef5fc..76edcd4 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -755,7 +755,7 @@ function serendipity_getUriArguments($uri, $wildcard = false) { global $serendipity; /* Explode the path into sections, to later be able to check for arguments and add our own */ - preg_match('/^'. preg_quote($serendipity['serendipityHTTPPath'], '/') . '(' . preg_quote($serendipity['indexFile'], '/') . '\?\/)?(' . ($wildcard ? '.+' : '[;,_a-z0-9\-*\/%\+]+') . ')/i', $uri, $_res); + preg_match('/^'. preg_quote($serendipity['serendipityHTTPPath'], '/') . '(' . preg_quote($serendipity['indexFile'], '/') . '\?\/)?(' . ($wildcard ? '.+' : '[;,_a-z\.0-9\-*\/%\+]+') . ')/i', $uri, $_res); if (strlen($_res[2]) != 0) { $args = explode('/', $_res[2]); if ($args[0] == 'index') {