Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / redirect / modules / redirect_404 / src / SqlRedirectNotFoundStorage.php
index 8b425e9ba02ea7b223b70e351c4ad1dafb8d5fac..98003ebaeda3ba8ffc668c6463db652889ed4ee2 100644 (file)
@@ -51,7 +51,7 @@ class SqlRedirectNotFoundStorage implements RedirectNotFoundStorageInterface {
    * {@inheritdoc}
    */
   public function logRequest($path, $langcode) {
-    if (Unicode::strlen($path) > static::MAX_PATH_LENGTH) {
+    if (mb_strlen($path) > static::MAX_PATH_LENGTH) {
       // Don't attempt to log paths that would result in an exception. There is
       // no point in logging truncated paths, as they cannot be used to build a
       // new redirect.