Ticket #19861: 19861.patch
File 19861.patch, 695 bytes (added by , 12 years ago) |
---|
-
wp-includes/wp-db.php
901 901 $args = $args[0]; 902 902 $query = str_replace( "'%s'", '%s', $query ); // in case someone mistakenly already singlequoted it 903 903 $query = str_replace( '"%s"', '%s', $query ); // doublequote unquoting 904 $query = str_replace( '%f' , '%F', $query ); // Force floats to be locale unaware 904 905 $query = preg_replace( '|(?<!%)%s|', "'%s'", $query ); // quote the strings, avoiding escaped strings like %%s 905 906 array_walk( $args, array( &$this, 'escape_by_ref' ) ); 906 907 return @vsprintf( $query, $args );