Ticket #6642: bug6642.patch
File bug6642.patch, 475 bytes (added by , 17 years ago) |
---|
-
kses.php
429 429 $string = $newstring; 430 430 if ( $string == '' ) 431 431 return ''; 432 // prevent multiple dashes in comments 433 $string = preg_replace('/--+/', '-', $string); 434 // prevent three dashes closing a comment 435 $string = preg_replace('/-$/', '', $string); 432 436 return "<!--{$string}-->"; 433 437 } 434 438 # Allow HTML comments