From: Marcel Werk Date: Tue, 17 Jul 2018 16:19:47 +0000 (+0200) Subject: Explicit type-casting for subject X-Git-Tag: 5.2.0_Alpha_1~364^2~123 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d06b7ce7d2ddef9c29dc296e52ea03dba06cb57;p=GitHub%2FWoltLab%2FWCF.git Explicit type-casting for subject --- diff --git a/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php index 5e8db21144..ab2b13dabd 100644 --- a/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php @@ -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; } }