Fixed issue in truncate HTML function
authorMarcel Werk <burntime@woltlab.com>
Thu, 20 Feb 2014 20:36:50 +0000 (21:36 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 20 Feb 2014 20:36:50 +0000 (21:36 +0100)
wcfsetup/install/files/lib/util/StringUtil.class.php

index 19a543cac7f824596a2dc69a65f6092f04bc318b..bba035994dfbcf2c0da2e8a31ce9839d4594d16a 100644 (file)
@@ -15,7 +15,7 @@ use wcf\system\WCF;
  */
 final class StringUtil {
        const HTML_PATTERN = '~</?[a-z]+[1-6]?
-                       (?:\s*[a-z]+\s*(=\s*(?:
+                       (?:\s*[a-z\-]+\s*(=\s*(?:
                        "[^"\\\\]*(?:\\\\.[^"\\\\]*)*"|\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\'|[^\s>]
                        ))?)*\s*/?>~ix';
        const HTML_COMMENT_PATTERN = '~<!--(.*?)-->~';