From fd253fa3f671bcade9e5c30660511419d7a8f312 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 18 Nov 2016 11:57:22 +0100 Subject: [PATCH] Fixed outdated regex --- wcfsetup/install/files/lib/util/StringUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1