Fixed outdated regex
authorAlexander Ebert <ebert@woltlab.com>
Fri, 18 Nov 2016 10:57:22 +0000 (11:57 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 18 Nov 2016 10:57:22 +0000 (11:57 +0100)
wcfsetup/install/files/lib/util/StringUtil.class.php

index 149f081b7831435f482db3b7821620c6a08e3dc0..a8100d62f794302b87e0c065e723534e58f38c21 100644 (file)
@@ -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;