Ticket #11311: 11311.patch
File 11311.patch, 806 bytes (added by , 15 years ago) |
---|
-
wp-includes/kses.php
948 948 function wp_kses_normalize_entities($string) { 949 949 # Disarm all entities by converting & to & 950 950 951 $string = str_replace('&', ' &', $string);951 $string = str_replace('&', '%%ampplaceholder%%', $string); 952 952 953 953 # Change back the allowed entities in our entity whitelist 954 954 … … 956 956 $string = preg_replace_callback('/&#0*([0-9]{1,5});/', 'wp_kses_normalize_entities2', $string); 957 957 $string = preg_replace_callback('/&#([Xx])0*(([0-9A-Fa-f]{2}){1,2});/', 'wp_kses_normalize_entities3', $string); 958 958 959 $string = str_replace('%%ampplaceholder%%', '&', $string); 960 959 961 return $string; 960 962 } 961 963