From a6aba62cc8bd4315c7362a6dd4c54e35c301a01e Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 1 Nov 2012 09:05:21 +0000 Subject: [PATCH] url configs now support urlencoded patterns (in theory) thus non latin characters --- e107_handlers/application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/application.php b/e107_handlers/application.php index d9e6c5205..1bdf3b52a 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -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) {