Modify ↓
Opened 15 years ago
Closed 7 years ago
#7022 closed defect (fixed)
validate_author won't validate email address stored in trac preferences.
Reported by: | Owned by: | Richard Liao | |
---|---|---|---|
Priority: | normal | Component: | TracTicketValidatorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
When using the following config in trac.ini
[components] ticketvalidator.* = enabled [ticketvalidator] validate_author = true validate_author.tip = Please fill your valid email address
and an anonymous user saves his email in trac preferences cookie e.g. http://hostname/projects/pathtoproject/prefs
then the Author field becomes something like Andrew Beck <andrew.beck@nokia.com>
which fails validation where just andrew.beck@nokia.com
works.
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 7 years ago by
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
This ticket is over 11 months old, but I just ran into the same problem, which I was able to fix relatively quickly. I don't believe this has any side-effects as I just changed the regex to also accept email addresses in the form "Name <email@…>".