Another place we need to double encode
git-svn-id: http://svn.automattic.com/wordpress/trunk@2143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
150b28860c
commit
91dd2f77b9
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue