Broken confirmation/unsubscribe links if special chars like + are used in email
-
We have discovered an issue with Email subscribers plugin: try subscribing to a post notification with an email address, that has e.g. a + symbol in the name – like [email protected] – in the double opt in confirmation email, you will receive the following link: https://www.icegram.com/?es=optin&db=2506&email=newsletter+[email protected]&guid=<GUID-VALUE>&cache=<CACHE-VALUE> – the link will not work though, but show the following error instead: ?Ein Fehler ist aufgetreten. Bitte versuchen Sie es sp?ter nochmal oder kontaktieren Sie uns. (an error has occured…)
this is because the URL value is not properly url encoded – the correct link which confirms the newsletter subscription from the example would be https://www.icegram.com/?es=optin&db=2506&email=newsletter%2B[email protected]&guid=<GUID-VALUE>&cache=<CACHE-VALUE>
the solution should be pretty easy: use the PHP function https://secure.php.net/urlencode everywhere where the emailadress gets added to an URL (like confirmation emails, unsubscribe emails…)
Would it be possible to include this fix in the next release?
The page I need help with: [log in to see the link]
- The topic ‘Broken confirmation/unsubscribe links if special chars like + are used in email’ is closed to new replies.