Make WordPress Core


Ignore:
Timestamp:
08/25/2003 01:12:19 AM (22 years ago)
Author:
saxmatt
Message:

Add slashes uncessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/wp-options.php

    r301 r344  
    7070                    if ($msg == '') {
    7171                        //no error message
    72                         $result = $wpdb->query("UPDATE $tableoptions SET option_value = '" . addslashes($new_val) . "' WHERE option_id = $option->option_id");
     72                        $result = $wpdb->query("UPDATE $tableoptions SET option_value = '$new_val' WHERE option_id = $option->option_id");
    7373                        if (!$result) {
    7474                            $db_errors .= " SQL error while saving $this_name. ";
Note: See TracChangeset for help on using the changeset viewer.