Skip to content

Commit

Permalink
fix: don’t log email in honeypot debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbrinkmann committed Dec 15, 2023
1 parent 2a95a5e commit a36a5fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Rules/Honeypot.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public static function precheck() {
}

if ( ! isset( $fields['plugin_field'] ) ) {
$log_data = $_POST;
unset( $log_data[ 'email' ] );
DebugMode::log( 'Missing `plugin_field` key in HoneyPot precheck method for the following $_POST data: ' . print_r( $_POST, true ) );
}

Expand Down

0 comments on commit a36a5fe

Please sign in to comment.