PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Fallback/Report.php +3 -2 2.10.03.3.1 View file →
@@ -14,11 +14,12 @@
14 14 global $wpdb;
15 15 $tablename = $wpdb->prefix . 'bitforms_reports';
16 16
17 17 // $latestIds = $wpdb->get_results("SELECT MAX(`id`) as latest_id FROM $tablename GROUP BY `context`");
18 + // Direct query: table name from $wpdb->prefix concatenation (no user input). $wpdb->prepare() cannot parameterize table names.
18 19 $wpdb->query(
19 20 $wpdb->prepare(
20 - "SELECT MAX(`id`) as latest_id FROM $tablename GROUP BY `context`"
21 + "SELECT MAX(`id`) as latest_id FROM `{$tablename}` GROUP BY `context`"
21 22 )
22 23 );
23 24 $latestIds = $wpdb->last_result;
24 25
@@ -37,9 +38,9 @@
37 38 ['id']
38 39 );
39 40
40 41 $details = [
41 - 'report_name' => 'All Entries',
42 + 'report_name' => __('All Entries', 'bit-form'),
42 43 'hiddenColumns' => [],
43 44 'pageSize' => 10,
44 45 'sortBy' => [],
45 46 'filters' => [],