Changeset 32402 for branches/4.1/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 08:01:59 PM (11 years ago)
- File:
-
- 1 edited
-
branches/4.1/src/wp-includes/wp-db.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1/src/wp-includes/wp-db.php
r32396 r32402 2503 2503 // We don't need to check the collation for queries that don't read data. 2504 2504 $query = ltrim( $query, "\r\n\t (" ); 2505 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN )\s/i', $query ) ) {2505 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $query ) ) { 2506 2506 return true; 2507 2507 } … … 2714 2714 */ 2715 2715 protected function strip_invalid_text_from_query( $query ) { 2716 // We don't need to check the collation for queries that don't read data. 2717 $trimmed_query = ltrim( $query, "\r\n\t (" ); 2718 if ( preg_match( '/^(?:SHOW|DESCRIBE|DESC|EXPLAIN|CREATE)\s/i', $trimmed_query ) ) { 2719 return $query; 2720 } 2721 2716 2722 $table = $this->get_table_from_query( $query ); 2717 2723 if ( $table ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)