Ticket #9823: no-0xad-strip.diff
File no-0xad-strip.diff, 738 bytes (added by , 15 years ago) |
---|
-
wp-includes/kses.php
750 750 */ 751 751 function wp_kses_bad_protocol($string, $allowed_protocols) { 752 752 $string = wp_kses_no_null($string); 753 $string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature"754 753 $string2 = $string.'a'; 755 754 756 755 while ($string != $string2) { … … 895 894 $string2 = wp_kses_decode_entities($string); 896 895 $string2 = preg_replace('/\s/', '', $string2); 897 896 $string2 = wp_kses_no_null($string2); 898 $string2 = preg_replace('/\xad+/', '', $string2);899 # deals with Opera "feature"900 897 $string2 = strtolower($string2); 901 898 902 899 $allowed = false;