Filter blog name and description through kses. Props donncha. fixes #1931

git-svn-id: https://develop.svn.wordpress.org/trunk@3187 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-21 18:28:32 +00:00
parent 937126176c
commit e215f6a066
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ case 'update':
if( in_array($option, $nonbools) && ( $value == '0' || $value == '') )
$value = 'closed';
if( $option == 'blogdescription' || $option == 'blogname' )
if (current_user_can('unfiltered_html') == false)
$value = wp_filter_post_kses( $value );
if ( update_option($option, $value) )
$any_changed++;
}