WordPress.org

Ready to get started?Download WordPress

Forums

Newsletter Sign-Up
[resolved] Invalid email address allowed (3 posts)

  1. hixmyrick
    Member
    Posted 1 year ago #

    Love the plugin. It is working great except that I am able to successfully submit the following invalid email address:

    name@domain./com

    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

    actstoday.net

    http://wordpress.org/extend/plugins/newsletter-sign-up/

  2. hixmyrick
    Member
    Posted 1 year ago #

    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".

  3. hixmyrick
    Member
    Posted 1 year ago #

    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

    name@domain./com

    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 ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic