X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fredirect%2Fmodules%2Fredirect_404%2Fsrc%2FEventSubscriber%2FRedirect404Subscriber.php;fp=web%2Fmodules%2Fcontrib%2Fredirect%2Fmodules%2Fredirect_404%2Fsrc%2FEventSubscriber%2FRedirect404Subscriber.php;h=f7cd1416ae101907769db7c98d04ce4ba7369945;hb=059867c3f96750652c80f39e44c442a58c2549ee;hp=7a54e86db6b1e34c7c333289e4e500ad5377eea8;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2;p=yaffs-website diff --git a/web/modules/contrib/redirect/modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php b/web/modules/contrib/redirect/modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php index 7a54e86db..f7cd1416a 100644 --- a/web/modules/contrib/redirect/modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php +++ b/web/modules/contrib/redirect/modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php @@ -2,7 +2,6 @@ namespace Drupal\redirect_404\EventSubscriber; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Path\PathMatcherInterface; @@ -106,11 +105,11 @@ class Redirect404Subscriber implements EventSubscriberInterface { $path = $this->currentPath->getPath(); // Ignore paths specified in the redirect settings. - if ($pages = Unicode::strtolower($this->config->get('pages'))) { + if ($pages = mb_strtolower($this->config->get('pages'))) { // Do not trim a trailing slash if that is the complete path. $path_to_match = $path === '/' ? $path : rtrim($path, '/'); - if ($this->pathMatcher->matchPath(Unicode::strtolower($path_to_match), $pages)) { + if ($this->pathMatcher->matchPath(mb_strtolower($path_to_match), $pages)) { return; } }