Changeset 32407 for branches/3.7/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 08:07:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-includes/wp-db.php
r32400 r32407 2081 2081 // We don't need to check the collation for queries that don't read data. 2082 2082 $query = ltrim( $query, "\r\n\t (" ); 2083 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN )\s/i', $query ) ) {2083 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $query ) ) { 2084 2084 return true; 2085 2085 } … … 2292 2292 */ 2293 2293 protected function strip_invalid_text_from_query( $query ) { 2294 // We don't need to check the collation for queries that don't read data. 2295 $trimmed_query = ltrim( $query, "\r\n\t (" ); 2296 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $trimmed_query ) ) { 2297 return $query; 2298 } 2299 2294 2300 $table = $this->get_table_from_query( $query ); 2295 2301 if ( $table ) {
Note: See TracChangeset
for help on using the changeset viewer.