WordPress.org

Make WordPress Core

Ticket #28506: 28506.diff

File 28506.diff, 436 bytes (added by mauteri, 5 years ago)

New patch based on feedback. Moved to kses.

  • wp-includes/kses.php

     
    997997function wp_kses_no_null($string) {
    998998        $string = preg_replace('/\0+/', '', $string);
    999999        $string = preg_replace('/(\\\\0)+/', '', $string);
     1000        $string = preg_replace('/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/', '', $string);
    10001001
    10011002        return $string;
    10021003}