Commit 08837bad authored by Pieter Frenssen's avatar Pieter Frenssen Committed by Kristen Pol
Browse files

Issue #3340167 by pfrenssen, Pavel Ruban, Berdir, Kristen Pol, Vrancje:...

Issue #3340167 by pfrenssen, Pavel Ruban, Berdir, Kristen Pol, Vrancje: Deprecated function: mb_strtolower(): Passing null is deprecated
parent be7ec21a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,11 +105,11 @@ class Redirect404Subscriber implements EventSubscriberInterface {
      $path = $this->currentPath->getPath();

      // Ignore paths specified in the redirect settings.
      if ($pages = mb_strtolower($this->config->get('pages'))) {
      if ($pages = $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(mb_strtolower($path_to_match), $pages)) {
        if ($this->pathMatcher->matchPath(mb_strtolower($path_to_match), mb_strtolower($pages))) {
          return;
        }
      }