Skip to content

Commit 0a4fd9a

Browse files
committed
Fix. Integrations. Update email validation in Ninja Forms to ensure the value is a string before checking if it's a valid email.
1 parent 22d2c86 commit 0a4fd9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/cleantalk-public-integrations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ function apbct_form__ninjaForms__collect_fields_new()
19871987
}
19881988
if (
19891989
(stripos($field_key, 'email') !== false && $field_type === 'email') ||
1990-
(function_exists('is_email') && is_email($field['value']))
1990+
(function_exists('is_email') && is_string($field['value']) && is_email($field['value']))
19911991
) {
19921992
/**
19931993
* On the plugin side we can not decide which of presented emails have to be used for check as sender_email,

0 commit comments

Comments
 (0)