[resolved] Subscribe2 widget is case-sensitivite to email addresses (3 posts)

  1. dmmeurer
    Posted 2 years ago #

    Hello, theSubscribe2 Widget seems to be case-sensitive.

    We had a subscriber in our list with an uppercase character at the beginning of the email address, who attempted to unsubscribe with all lower case. This generates an error message: "that email address is not subscribed".

    Would it be possible to make this tool case-independent since email addresses are not case-sensitive and practices vary?

    Thank you


  2. mattyrob
    Posted 2 years ago #


    Actually RFC 2821 says that emails addresses are case sensitive, at least the part before the @ symbol is, the domain part is not.

    So, on some host setups ADMIN@example.com and admin@example.com could well be different email addresses.

    Subscribe2 needs to cater to the standards and work on such sites, it is therefore coded to sanitise emails by converting the domain part to lower case but leaving the first part of the address as it was input.

    If you want to change this behaviour for your site you need to alter the sanitise_email() function in the classes/class-s2-core.php file.

  3. dmmeurer
    Posted 2 years ago #

    Ok, thanks for the reply. I will consider a site-specific change.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic