WordPress.org

Make WordPress Core

Changeset 5791


Ignore:
Timestamp:
07/09/07 17:55:32 (7 years ago)
Author:
markjaquith
Message:

Undo pre-doublequoting in prepare(). Props JeremyVisser. see #4553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r5779 r5791  
    133133        $args = func_get_args(); 
    134134        $query = array_shift($args); 
    135         $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already quoted it 
     135        $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already singlequoted it 
     136        $query = str_replace('"%s"', '%s', $query); // doublequote unquoting 
    136137        $query = str_replace('%s', "'%s'", $query); // quote the strings 
    137138        array_walk($args, array(&$this, 'escape_by_ref')); 
Note: See TracChangeset for help on using the changeset viewer.