Changes between Version 3 and Version 4 of Ticket #57149, comment 1
- Timestamp:
- 11/21/2022 02:15:47 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57149, comment 1
v3 v4 60 60 1. Instead, ''most likely'', these queries should be concatenated, unescaped and unprepared, and manually slashed to accommodate the desired matching. In this way, the core `str_replace( '\\_', '_', $maybe[2] )` is surprisingly accurate: 61 61 {{{ 62 $like = 'wp\\\_\\\_\\\_\\\_users';62 $like = "'wp\\\_\\\_\\\_\\\_users'"; 63 63 $sql = 'SHOW TABLES LIKE ' . $like; 64 64 $query = $wpdb->get_var( $sql );