PluginProbe
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript / 4.1.16
BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS & JavaScript v4.1.16
4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.0.30 4.0.29 4.0.28 4.0.27 4.0.26 4.0.24 4.0.25 4.0.23 4.0.22 4.0.21 4.0.19 4.0.18 4.0.17 4.0.16 1.9.3 1.9.4 1.9.5 1.9.6 All 170 releases
← All changes | api/request_cache.php +3 -3 4.0.194.1.16 View file →
@@ -32,14 +32,14 @@
32 32 wp_send_json_error(['status' => 'forbidden', 'message' => 'Unauthorized request.'], 403);
33 33 exit;
34 34 }
35 35
36 - $path = $_POST['page_slug'];
37 - $page_url = $_POST['page_url'];
36 + $path = sanitize_text_field(wp_unslash($_POST['page_slug']));
37 + $page_url = esc_url_raw(wp_unslash($_POST['page_url']));
38 38
39 39 if (bwp_can_warmup_cache($page_url)) {
40 40 warmup_cache_by_url($page_url);
41 - echo json_encode(['status' => 'success']);
41 + echo wp_json_encode(['status' => 'success']);
42 42 }
43 43
44 44 exit;
45 45 }