We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9480b6b commit 2ec7c01Copy full SHA for 2ec7c01
src/Admin/CacheFlusher.php
@@ -33,7 +33,7 @@ public function item(): MenuItem
33
*/
34
public function flush_cache()
35
{
36
- $wpNonce = filter_input(INPUT_GET, '_wpnonce', FILTER_SANITIZE_STRING);
+ $wpNonce = filter_input(INPUT_GET, '_wpnonce', FILTER_SANITIZE_SPECIAL_CHARS);
37
if (!$wpNonce || !wp_verify_nonce($wpNonce, self::PURGE_ACTION)) {
38
wp_nonce_ays('');
39
}
0 commit comments