Uncaught TypeError: Unsupported operand types: int – string
-
Uncaught TypeError: Unsupported operand types: int - string in /var/www/public/wp-content/plugins/contact-form-7-honeypot/includes/honeypot4cf7.php:159
Stemming from this code:
// SPAM CHECK #1: Let's check submission speed first, as it's time sensitive. :)
$timecheck_start = isset( $_POST[$hpid.'-time-start'] ) ? $_POST[$hpid.'-time-start'] : '';
if ( $timecheck_start ) {
$submission_time = time();
$timecheck_value = isset( $_POST[$hpid.'-time-check'] ) ? $_POST[$hpid.'-time-check'] : '';
$submission_interval = $submission_time - $timecheck_start;This was triggered by an exploit scanner fuzzing a form. We don’t log the $_POST contents with these, but I assume that it was a combination of a string and an int being passed in $_POST.
I think the easiest remedy would be cast the values from $_POST to int when they are being retrieved.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.