Add slashes uncessary.

git-svn-id: https://develop.svn.wordpress.org/trunk@344 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-08-25 01:12:19 +00:00
parent 68511fe711
commit 1be6dfda7f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {