Ticket #2130: kses-comments.diff
File kses-comments.diff, 668 bytes (added by , 19 years ago) |
---|
-
wp-includes/kses.php
98 98 return '>'; 99 99 # It matched a ">" character 100 100 101 if (preg_match('%^<!--.*-->$%', $string)) 102 return $string; 101 if (preg_match('%^<!--(.*)-->$%', $string, $matches)) { 102 $string = $matches[1]; 103 while ( $string != $newstring = wp_kses($string, $allowed_html, $allowed_protocols) ) 104 $string = $newstring; 105 return "<!--{$string}-->"; 106 } 103 107 # Allow HTML comments 104 108 105 109 if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9]+)([^>]*)>?$%', $string, $matches))