Add slashes uncessary.
git-svn-id: https://develop.svn.wordpress.org/trunk@344 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68511fe711
commit
1be6dfda7f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user