From 3440138f0450ec1b26cd0cc726113dc46ec81fc3 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 7 Jan 2005 01:39:18 +0000 Subject: [PATCH] Trim updated options. git-svn-id: http://svn.automattic.com/wordpress/trunk@2067 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/options.php b/wp-admin/options.php index dd972f44f..0c9967a6f 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -48,7 +48,7 @@ case 'update': // should we even bother checking? if ($user_level >= $option->option_admin_level) { $old_val = $option->option_value; - $new_val = wp_specialchars($_POST[$option->option_name]); + $new_val = wp_specialchars( trim($_POST[$option->option_name]) ); if (!$new_val) { if (3 == $option->option_type) $new_val = '';