Fixed stripHTML issue
authorMarcel Werk <burntime@woltlab.com>
Tue, 11 Jun 2013 20:36:33 +0000 (22:36 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 11 Jun 2013 20:36:33 +0000 (22:36 +0200)
wcfsetup/install/files/lib/util/StringUtil.class.php

index 4c44cc64079a9706ec948697fa01526094dc8eb8..06c65281d0f28a5320a77540fb83fb3abb51f6e1 100644 (file)
@@ -15,9 +15,9 @@ 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';
+                       ))?)*\s*/?>~ix';
        const HTML_COMMENT_PATTERN = '~<!--(.*?)-->~';
        
        /**