Changeset 32406 for branches/3.8/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 08:06:12 PM (11 years ago)
- File:
-
- 1 edited
-
branches/3.8/src/wp-includes/wp-db.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-includes/wp-db.php
r32399 r32406 2089 2089 // We don't need to check the collation for queries that don't read data. 2090 2090 $query = ltrim( $query, "\r\n\t (" ); 2091 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN )\s/i', $query ) ) {2091 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $query ) ) { 2092 2092 return true; 2093 2093 } … … 2300 2300 */ 2301 2301 protected function strip_invalid_text_from_query( $query ) { 2302 // We don't need to check the collation for queries that don't read data. 2303 $trimmed_query = ltrim( $query, "\r\n\t (" ); 2304 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $trimmed_query ) ) { 2305 return $query; 2306 } 2307 2302 2308 $table = $this->get_table_from_query( $query ); 2303 2309 if ( $table ) {
Note: See TracChangeset
for help on using the changeset viewer.