Ticket #33470: wp-db.php.diff
File wp-db.php.diff, 1.4 KB (added by , 9 years ago) |
---|
-
wp-includes/wp-db.php
2833 2833 . '|REPLACE(?:\s+LOW_PRIORITY|\s+DELAYED)?(?:\s+INTO)?' 2834 2834 . '|UPDATE(?:\s+LOW_PRIORITY)?(?:\s+IGNORE)?' 2835 2835 . '|DELETE(?:\s+LOW_PRIORITY|\s+QUICK|\s+IGNORE)*(?:\s+FROM)?' 2836 . ')\s+((?:[0-9a-zA-Z$_.` ]|[\xC2-\xDF][\x80-\xBF])+)/is', $query, $maybe ) ) {2836 . ')\s+((?:[0-9a-zA-Z$_.`-]|[\xC2-\xDF][\x80-\xBF])+)/is', $query, $maybe ) ) { 2837 2837 return str_replace( '`', '', $maybe[1] ); 2838 2838 } 2839 2839 … … 2841 2841 if ( preg_match( '/^\s*(?:' 2842 2842 . 'SHOW\s+TABLE\s+STATUS.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2843 2843 . '|SHOW\s+(?:FULL\s+)?TABLES.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2844 . ')\W((?:[0-9a-zA-Z$_.` ]|[\xC2-\xDF][\x80-\xBF])+)\W/is', $query, $maybe ) ) {2844 . ')\W((?:[0-9a-zA-Z$_.`-]|[\xC2-\xDF][\x80-\xBF])+)\W/is', $query, $maybe ) ) { 2845 2845 return str_replace( '`', '', $maybe[1] ); 2846 2846 } 2847 2847 … … 2860 2860 . '|LOAD\s+DATA.*INFILE.*INTO\s+TABLE' 2861 2861 . '|(?:GRANT|REVOKE).*ON\s+TABLE' 2862 2862 . '|SHOW\s+(?:.*FROM|.*TABLE)' 2863 . ')\s+\(*\s*((?:[0-9a-zA-Z$_.` ]|[\xC2-\xDF][\x80-\xBF])+)\s*\)*/is', $query, $maybe ) ) {2863 . ')\s+\(*\s*((?:[0-9a-zA-Z$_.`-]|[\xC2-\xDF][\x80-\xBF])+)\s*\)*/is', $query, $maybe ) ) { 2864 2864 return str_replace( '`', '', $maybe[1] ); 2865 2865 } 2866 2866