Changeset 32374 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 06:04:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r32368 r32374 2532 2532 // We don't need to check the collation for queries that don't read data. 2533 2533 $query = ltrim( $query, "\r\n\t (" ); 2534 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN )\s/i', $query ) ) {2534 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $query ) ) { 2535 2535 return true; 2536 2536 } … … 2742 2742 */ 2743 2743 protected function strip_invalid_text_from_query( $query ) { 2744 // We don't need to check the collation for queries that don't read data. 2745 $trimmed_query = ltrim( $query, "\r\n\t (" ); 2746 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $trimmed_query ) ) { 2747 return $query; 2748 } 2749 2744 2750 $table = $this->get_table_from_query( $query ); 2745 2751 if ( $table ) {
Note: See TracChangeset
for help on using the changeset viewer.