mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +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);
|
if ($this->urlSuffix !== null) $pathInfo = $manager->removeUrlSuffix($rawPathInfo, $this->urlSuffix);
|
||||||
|
|
||||||
$pathInfo = rtrim($pathInfo, '/').'/';
|
$pathInfo = rtrim($pathInfo, '/').'/';
|
||||||
|
// pathInfo is decoded, pattern could be encoded - required for proper url assemble (e.g. cyrillic chars)
|
||||||
if (preg_match($this->pattern.$case, $pathInfo, $matches))
|
if (preg_match(rawurldecode($this->pattern).$case, $pathInfo, $matches))
|
||||||
{
|
{
|
||||||
foreach ($this->defaultParams as $name => $value)
|
foreach ($this->defaultParams as $name => $value)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user