Another place we need to double encode

git-svn-id: https://develop.svn.wordpress.org/trunk@2143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-01-24 10:09:01 +00:00
parent 7d19f5b25f
commit e78ceee3fc
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ case 'update':
// should we even bother checking?
if ($user_level >= $option->option_admin_level) {
$old_val = $option->option_value;
$new_val = wp_specialchars( trim($_POST[$option->option_name]) );
$new_val = htmlspecialchars( trim($_POST[$option->option_name]) );
if (!$new_val) {
if (3 == $option->option_type)
$new_val = '';