WordPress.org

Support

Support » Plugins and Hacks » Subscribe2 » [Resolved] Subscribe2 widget is case-sensitivite to email addresses

[Resolved] Subscribe2 widget is case-sensitivite to email addresses

  • 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

    http://wordpress.org/extend/plugins/subscribe2/

Viewing 2 replies - 1 through 2 (of 2 total)
  • @dmmeurer,

    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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Subscribe2 widget is case-sensitivite to email addresses’ is closed to new replies.
Skip to toolbar