← Back to team overview

mahara-contributors team mailing list archive

[Bug 610714] Re: Email confirmation doesn't work when there's a + sign in the address

 

This works for me on Master with the php5-common from Lenny.

If this is the same as the bug I originally reported, it was actually a bug with php.
I filed it with php and with Debian and it was fixed in php and the versino of php5-common in Lenny as a result.

PHP: http://bugs.php.net/bug.php?id=50158
Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556459

Mahara uses PHPMailer's ValidateAddress function which uses
filter_var($address, FILTER_VALIDATE_EMAIL) for e-mail validation.  The
previous bug was in the FILTER_VALIDATE_EMAIL code within php.
PHPMailer does do it's own validation if the filter_var function doesn't
exist in your version of php though.

If I force PHPMailer to use it's own regexp rather than passing off to
filter_var, then there still aren't any problems.

Either way, I don't think that this is a regression within Mahara since
Mahara doesn't actually validate e-mail addresses itself.

** Bug watch added: bugs.php.net/ #50158
   http://bugs.php.net/bug.php?id=50158

** Bug watch added: Debian Bug tracker #556459
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556459

-- 
Email confirmation doesn't work when there's a + sign in the address
https://bugs.launchpad.net/bugs/610714
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Confirmed

Bug description:
It is possible to add an email address with a plus sign to your profile, but when clicking on the email link to confirm it, Mahara says that it's invalid.

Email addresses like this: francois+1@xxxxxxxxxxxxxxx





References