Make WordPress Core

Ticket #9823: no-0xad-strip.diff

File no-0xad-strip.diff, 738 bytes (added by nbachiyski, 15 years ago)
  • wp-includes/kses.php

     
    750750 */
    751751function wp_kses_bad_protocol($string, $allowed_protocols) {
    752752        $string = wp_kses_no_null($string);
    753         $string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature"
    754753        $string2 = $string.'a';
    755754
    756755        while ($string != $string2) {
     
    895894        $string2 = wp_kses_decode_entities($string);
    896895        $string2 = preg_replace('/\s/', '', $string2);
    897896        $string2 = wp_kses_no_null($string2);
    898         $string2 = preg_replace('/\xad+/', '', $string2);
    899         # deals with Opera "feature"
    900897        $string2 = strtolower($string2);
    901898
    902899        $allowed = false;