WordPress.org

Make WordPress Core

Ticket #4379: kses-iacute.diff

File kses-iacute.diff, 510 bytes (added by nbachiyski, 7 years ago)
  • wp-includes/kses.php

     
    740740 */ 
    741741function wp_kses_bad_protocol($string, $allowed_protocols) { 
    742742        $string = wp_kses_no_null($string); 
     743        $string = str_replace("\xc3\xad", 'i', $string); # do not break í with the next replacement 
    743744        $string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature" 
    744745        $string2 = $string.'a'; 
    745746