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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user