Strip rtl override char
authorMarcel Werk <burntime@woltlab.com>
Sun, 28 Mar 2021 09:37:09 +0000 (11:37 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 28 Mar 2021 09:37:09 +0000 (11:37 +0200)
wcfsetup/install/files/lib/util/StringUtil.class.php

index e52d9b44a29b95cc649374078b4823885e99ecb5..22f718cb92d8fa2e484b7cbc1f2c3c107badace3 100644 (file)
@@ -82,8 +82,8 @@ final class StringUtil {
                // specification.
                // Do not merge the expressions, they are separated for
                // performance reasons.
-               $text = preg_replace('/^[\p{Zs}\s]+/u', '', $text);
-               $text = preg_replace('/[\p{Zs}\s]+$/u', '', $text);
+               $text = preg_replace('/^[\p{Zs}\s\x{202E}]+/u', '', $text);
+               $text = preg_replace('/[\p{Zs}\s\x{202E}]+$/u', '', $text);
                
                return $text;
        }