Support » Plugin: Newsletter Sign-Up » Invalid email address allowed
3 years, 10 months ago
Love the plugin. It is working great except that I am able to successfully submit the following invalid email address:
I tested this format with WP’s is_email() and it was rejected.
Other invalid addresses like name@domain and nameonly redirect to the error page.
WP 3.5.1, NSU 1.7.9
A little more information. In NewsletterSignUp.php, I see the is_email() test is for “nsu-email”.
In the Chrome developer tool, I found that the email field id was “nsu-email-1”. I changed it in the tool to “nsu-email” and the bad email address was caught.
The question now is why the email field id is “nsu-email-1”.
I see in NewsletterSignUp.php that the form number is appended to the email field’s id, so my question about this is answered.
One last comment. If I remove the redirect URL hidden form value and submit the bad address
it is caught by iContact I’m taken to the standard iContact error page. It appears that iContact’s error pages take over from the standard error messages.
So the problem is using custom redirect error pages with iContact, and I don’t think this is a problem with the plugin.
Marking as resolved. Moving on …