| 1 | Index: wordpress/wp-includes/formatting.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wordpress/wp-includes/formatting.php (revision 11324) |
|---|
| 4 | +++ wordpress/wp-includes/formatting.php (working copy) |
|---|
| 5 | @@ -240,11 +240,11 @@ |
|---|
| 6 | } elseif ( $quote_style === 'single' ) { |
|---|
| 7 | $quote_style = ENT_NOQUOTES; |
|---|
| 8 | } |
|---|
| 9 | - |
|---|
| 10 | + |
|---|
| 11 | // Handle double encoding ourselves |
|---|
| 12 | if ( !$double_encode ) { |
|---|
| 13 | $string = wp_specialchars_decode( $string, $_quote_style ); |
|---|
| 14 | - $string = preg_replace( '/&(#?x?[0-9]+|[a-z]+);/i', '|wp_entity|$1|/wp_entity|', $string ); |
|---|
| 15 | + $string = preg_replace( '/&(#?x?[0-9a-z]+);/i', '|wp_entity|$1|/wp_entity|', $string ); |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | $string = @htmlspecialchars( $string, $quote_style, $charset ); |
|---|