mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Add slashes uncessary.
git-svn-id: http://svn.automattic.com/wordpress/trunk@344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
256088fc54
commit
4e47e2a30a
@ -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