mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Use the non-slashing variants of kses functions in sanitize_option() to avoid slash ping pong. fixes #21892.
git-svn-id: http://core.svn.wordpress.org/trunk@21850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8cbf331fa5
commit
f4c9c9ce0d
@ -2789,9 +2789,7 @@ function sanitize_option($option, $value) {
|
|||||||
|
|
||||||
case 'blogdescription':
|
case 'blogdescription':
|
||||||
case 'blogname':
|
case 'blogname':
|
||||||
$value = addslashes($value);
|
$value = wp_kses_post( $value );
|
||||||
$value = wp_filter_post_kses( $value ); // calls stripslashes then addslashes
|
|
||||||
$value = stripslashes($value);
|
|
||||||
$value = esc_html( $value );
|
$value = esc_html( $value );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -2807,9 +2805,7 @@ function sanitize_option($option, $value) {
|
|||||||
case 'ping_sites':
|
case 'ping_sites':
|
||||||
case 'upload_path':
|
case 'upload_path':
|
||||||
$value = strip_tags($value);
|
$value = strip_tags($value);
|
||||||
$value = addslashes($value);
|
$value = wp_kses_data($value);
|
||||||
$value = wp_filter_kses($value); // calls stripslashes then addslashes
|
|
||||||
$value = stripslashes($value);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'gmt_offset':
|
case 'gmt_offset':
|
||||||
|
Loading…
Reference in New Issue
Block a user