1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 08:51:50 +02:00

url configs now support urlencoded patterns (in theory) thus non latin characters

This commit is contained in:
secretr
2012-11-01 09:05:21 +00:00
parent c9aebaa4f8
commit a6aba62cc8

View File

@@ -2498,8 +2498,8 @@ class eUrlRule
if ($this->urlSuffix !== null) $pathInfo = $manager->removeUrlSuffix($rawPathInfo, $this->urlSuffix);
$pathInfo = rtrim($pathInfo, '/').'/';
if (preg_match($this->pattern.$case, $pathInfo, $matches))
// pathInfo is decoded, pattern could be encoded - required for proper url assemble (e.g. cyrillic chars)
if (preg_match(rawurldecode($this->pattern).$case, $pathInfo, $matches))
{
foreach ($this->defaultParams as $name => $value)
{