From: Alexander Ebert Date: Fri, 18 Nov 2016 10:57:22 +0000 (+0100) Subject: Fixed outdated regex X-Git-Tag: 3.0.0_Beta_5~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd253fa3f671bcade9e5c30660511419d7a8f312;p=GitHub%2FWoltLab%2FWCF.git Fixed outdated regex --- diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 149f081b78..a8100d62f7 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -82,7 +82,7 @@ final class StringUtil { // specification. // Do not merge the expressions, they are separated for // performance reasons. - $text = preg_replace('/^\p{Zs}+/u', '', $text); + $text = preg_replace('/^[\p{Zs}\s]+/u', '', $text); $text = preg_replace('/[\p{Zs}\s]+$/u', '', $text); return $text;