From 4e47e2a30aff06d3c2b486505b981bf5256e1571 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 25 Aug 2003 01:12:19 +0000 Subject: [PATCH] Add slashes uncessary. git-svn-id: http://svn.automattic.com/wordpress/trunk@344 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/wp-options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/wp-options.php b/wp-admin/wp-options.php index 13bdce55bf..d286cc9711 100644 --- a/wp-admin/wp-options.php +++ b/wp-admin/wp-options.php @@ -69,7 +69,7 @@ case "update": $msg = validate_option($option, $this_name, $new_val); if ($msg == '') { //no error message - $result = $wpdb->query("UPDATE $tableoptions SET option_value = '" . addslashes($new_val) . "' WHERE option_id = $option->option_id"); + $result = $wpdb->query("UPDATE $tableoptions SET option_value = '$new_val' WHERE option_id = $option->option_id"); if (!$result) { $db_errors .= " SQL error while saving $this_name. "; } else {