Skip to content

Commit

Permalink
fix: check for ab_spam__invalid_request in $_POST
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbrinkmann committed Jan 22, 2024
1 parent b7ba7a6 commit 65b1c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/InvalidRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class InvalidRequest extends Base implements SpamReason {
protected static $slug = 'asb-invalid-request';

public static function verify( $item ) {
if ( isset( $item[ 'ab_spam__invalid_request'] ) && $item[ 'ab_spam__invalid_request'] ) {
if ( isset( $_POST[ 'ab_spam__invalid_request'] ) && $_POST[ 'ab_spam__invalid_request'] ) {
return 999;
}

Expand Down

0 comments on commit 65b1c1f

Please sign in to comment.