Explicit type-casting for subject
authorMarcel Werk <burntime@woltlab.com>
Tue, 17 Jul 2018 16:19:47 +0000 (18:19 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 17 Jul 2018 16:19:47 +0000 (18:19 +0200)
wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php

index 5e8db21144708ff004434186df8d08c29f5ddb84..ab2b13dabd790439502f72f4885c7620428deed1 100644 (file)
@@ -231,7 +231,7 @@ class DynamicRequestRoute implements IRequestRoute {
                                        return false;
                                }
                                
-                               if ($pattern && !preg_match($pattern, $components[$component])) {
+                               if ($pattern && !preg_match($pattern, (string) $components[$component])) {
                                        return false;
                                }
                        }