Ticket #11573: 11573.patch
| File 11573.patch, 785 bytes (added by , 16 years ago) |
|---|
-
wp-includes/formatting.php
2841 2841 } 2842 2842 2843 2843 $match = array(); 2844 $found = false; 2844 2845 while ( preg_match('/%[a-f0-9]{2}/i', $filtered, $match) ) { 2845 2846 $filtered = str_replace($match[0], '', $filtered); 2847 $found = true; 2846 2848 } 2847 // Strip out the whitespace that may now exist after removing the octets.2848 $filtered = trim( preg_replace('/[\r\n\t ]+/', ' ', $filtered) );2849 2849 2850 if ( $found ) { 2851 // Strip out the whitespace that may now exist after removing the octets. 2852 $filtered = trim( preg_replace('/ +/', ' ', $filtered) ); 2853 } 2854 2850 2855 return apply_filters('sanitize_text_field', $filtered, $str); 2851 2856 } 2852 2857