Ticket #57149: 57149.diff
File 57149.diff, 664 bytes (added by , 2 years ago) |
---|
-
src/wp-includes/class-wpdb.php
3531 3531 * which drop-ins can use for routing these SQL statements. 3532 3532 */ 3533 3533 if ( preg_match( '/^\s*SHOW\s+(?:TABLE\s+STATUS|(?:FULL\s+)?TABLES)\s+(?:WHERE\s+Name\s+)?LIKE\s*("|\')((?:[\\\\0-9a-zA-Z$_.-]|[\xC2-\xDF][\x80-\xBF])+)%?\\1/is', $query, $maybe ) ) { 3534 return str_replace( '\\_', '_', $maybe[2] );3534 return str_replace( ['\\\\_', '\\_'], '_', $maybe[2] ); 3535 3535 } 3536 3536 3537 3537 // Big pattern for the rest of the table-related queries.