X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FRouteProvider.php;h=d31f293e18c411c660c4c96989e0fef7625f66c9;hb=refs%2Fheads%2Fd864;hp=95cbd6715b71534102c72a3d2a72b08c7b0a7d54;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Routing/RouteProvider.php b/web/core/lib/Drupal/Core/Routing/RouteProvider.php index 95cbd6715..d31f293e1 100644 --- a/web/core/lib/Drupal/Core/Routing/RouteProvider.php +++ b/web/core/lib/Drupal/Core/Routing/RouteProvider.php @@ -2,7 +2,6 @@ namespace Drupal\Core\Routing; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Cache\CacheTagsInvalidatorInterface; @@ -345,7 +344,7 @@ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProv // have a case-insensitive match from the incoming path to the lower case // pattern outlines from \Drupal\Core\Routing\RouteCompiler::compile(). // @see \Drupal\Core\Routing\CompiledRoute::__construct() - $parts = preg_split('@/+@', Unicode::strtolower($path), NULL, PREG_SPLIT_NO_EMPTY); + $parts = preg_split('@/+@', mb_strtolower($path), NULL, PREG_SPLIT_NO_EMPTY); $collection = new RouteCollection(); @@ -402,7 +401,7 @@ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProv * {@inheritdoc} */ public function reset() { - $this->routes = []; + $this->routes = []; $this->serializedRoutes = []; $this->cacheTagInvalidator->invalidateTags(['routes']); }