View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04048 | Bug reports | Survey participants (Tokens) | public | 2010-01-14 22:53 | 2010-02-04 18:40 |
Reporter | Assigned To | harsha | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.87+ | ||||
Fixed in Version | 1.87+ | ||||
Summary | 04048: + (plus) character in email not allowed when importing tokens | ||||
Description | when importing tokens, email-addresses containing a + (plus) are rejected as invalid addresses. But as of RFC 5322 they are valid. Example: me+myself@host.de | ||||
Additional Information | http://en.wikipedia.org/wiki/E-mail_address#RFC_specification | ||||
Tags | No tags attached. | ||||
Attached Files | token-import.patch (876 bytes)
Index: admin/tokens.php =================================================================== --- admin/tokens.php (revision 8326) +++ admin/tokens.php (working copy) @@ -2295,7 +2295,7 @@ $invalidemaillist[]=$line[0]." ".$line[1]." (".$line[2].")"; } - if (!$dupfound) + if (!$dupfound && !$invalidemail) { if (!isset($writearray['emailstatus']) || $writearray['emailstatus']=='') $writearray['emailstatus'] = "OK"; if (!isset($writearray['token'])) { @@ -2313,11 +2313,9 @@ if (!$ir) { $duplicatelist[]=$writearray['firstname']." ".$writearray['lastname']." (".$writearray['email'].")"; - } - else - { - $xz++; - } + } else { + $xz++; + } } $xv++; } | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 8243 | ||||
I will donate to the project if issue is resolved | |||||
Browser | |||||
Database type & version | mysql 5.1 | ||||
Server OS (if known) | Debian 5 x68_64 | ||||
Webserver software & version (if known) | apache 2.2 | ||||
PHP Version | php 5.2 | ||||
yes I know that is a stupid bug... but trust me I do have users with a plus in their mail address... ;-) |
|
"Bug" is maybe not a bug... sorry. It's just displayed as invalid but still imported and emails are sent to such addresses. So just only a display issue. |
|
Well, if an email is marked as invalid it should not be imported. |
|
Reminder sent to: harsha Hi! Why did you un-assign it? |
|
It is indeed a mistake.. I am sorry about it. |
|
Should it discard whole record having invalid email or only the email field in the record. |
|
Discard the whole record. |
|
ok , patch is attached. Please verify. |
|
Resolved the issue for importing tokens with invalid email addresses. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-01-14 22:53 |
|
New Issue | |
2010-01-14 22:53 |
|
Status | new => assigned |
2010-01-14 22:53 |
|
Assigned To | => user372 |
2010-01-14 22:53 |
|
LimeSurvey build number | => 8243 |
2010-01-14 22:53 |
|
Database & DB-Version | => mysql 5.1 |
2010-01-14 22:53 |
|
Operating System (Server) | => Debian 5 x68_64 |
2010-01-14 22:53 |
|
Webserver | => apache 2.2 |
2010-01-14 22:53 |
|
PHP Version | => php 5.2 |
2010-01-14 22:54 |
|
Note Added: 10781 | |
2010-01-14 23:19 |
|
Note Added: 10782 | |
2010-01-16 16:18 | c_schmitz | Assigned To | user372 => harsha |
2010-01-16 16:19 | c_schmitz | Relationship added | related to 03901 |
2010-01-16 16:21 | c_schmitz | Note Added: 10802 | |
2010-01-17 08:18 | harsha | Assigned To | harsha => |
2010-01-25 01:17 | c_schmitz | Issue Monitored: harsha | |
2010-01-25 01:17 | c_schmitz | Note Added: 10872 | |
2010-01-27 23:30 | c_schmitz | Assigned To | => harsha |
2010-01-28 20:53 | harsha | Note Added: 10925 | |
2010-01-30 09:01 | harsha | Note Added: 10937 | |
2010-01-30 11:27 | c_schmitz | Note Added: 10938 | |
2010-01-30 13:41 | harsha | File Added: token-import.patch | |
2010-01-30 13:43 | harsha | Note Added: 10939 | |
2010-01-31 14:41 | harsha | Note Added: 10944 | |
2010-01-31 14:41 | harsha | Status | assigned => resolved |
2010-01-31 14:41 | harsha | Fixed in Version | => 1.87+ |
2010-01-31 14:41 | harsha | Resolution | open => fixed |
2010-02-04 18:40 | c_schmitz | Status | resolved => closed |
2016-12-08 10:39 | c_schmitz | Category | Tokens => Survey participants (Tokens) |
2021-08-03 19:00 | guest | Bug heat | 6 => 8 |