Changeset 32403 for branches/4.0/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 08:03:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/src/wp-includes/wp-db.php
r32397 r32403 2502 2502 // We don't need to check the collation for queries that don't read data. 2503 2503 $query = ltrim( $query, "\r\n\t (" ); 2504 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN )\s/i', $query ) ) {2504 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $query ) ) { 2505 2505 return true; 2506 2506 } … … 2713 2713 */ 2714 2714 protected function strip_invalid_text_from_query( $query ) { 2715 // We don't need to check the collation for queries that don't read data. 2716 $trimmed_query = ltrim( $query, "\r\n\t (" ); 2717 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $trimmed_query ) ) { 2718 return $query; 2719 } 2720 2715 2721 $table = $this->get_table_from_query( $query ); 2716 2722 if ( $table ) {
Note: See TracChangeset
for help on using the changeset viewer.