← All changes
|
includes/admin/components/analytics/alert/summary.php
+2
-2
1.1.0
→
2.7.0
View file →
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | */ |
| 60 | 60 | public function set_alert_details() { |
| 61 | 61 | global $wpdb; |
| 62 | 62 | |
| 63 | - $rule_id = filter_input( INPUT_GET, 'target_id', FILTER_SANITIZE_STRING ); | |
| 63 | + $rule_id = sellkit_htmlspecialchars( INPUT_GET, 'target_id' ); | |
| 64 | 64 | |
| 65 | 65 | $start_date = time() - ( 60 * 60 * 24 * Analytics::$date_range ); |
| 66 | 66 | |
| 67 | 67 | $sellkit_prefix = Database::DATABASE_PREFIX; |
| @@ -76,7 +76,7 @@ | ||
| 76 | 76 | $this->data['impression'] = ! empty( $query_result[0]['impression'] ) ? $query_result[0]['impression'] : 0; |
| 77 | 77 | $this->data['click'] = ! empty( $query_result[0]['click'] ) ? $query_result[0]['click'] : 0; |
| 78 | 78 | // phpcs:enable |
| 79 | 79 | |
| 80 | - $this->data['target_title'] = get_the_title( $rule_id ); | |
| 80 | + $this->data['target_title'] = sellkit_decode_entity_title( get_the_title( $rule_id ) ); | |
| 81 | 81 | } |
| 82 | 82 | } |