Skip to content

Commit 8af35fe

Browse files
committed
Fix XSS issue caused by debugging
1 parent 306dfe7 commit 8af35fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-accessibility-stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function wpa_stats_action() {
213213
if ( isset( $_REQUEST['action'] ) && 'wpa_stats_action' === $_REQUEST['action'] ) {
214214
$security = $_REQUEST['security'];
215215
if ( ! wp_verify_nonce( $security, 'wpa-stats-action' ) ) {
216-
wp_send_json( array( 'failed' => $_REQUEST ) );
216+
wp_die();
217217
}
218218
$stats = map_deep( $_REQUEST['stats'], 'sanitize_text_field' );
219219
$post_id = absint( $_REQUEST['post_id'] );

0 commit comments

Comments
 (0)