From 1be6dfda7fc12080e709765790604ec06db6e2cb Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 25 Aug 2003 01:12:19 +0000 Subject: [PATCH] Add slashes uncessary. git-svn-id: https://develop.svn.wordpress.org/trunk@344 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 {