Modify ↓
Opened 13 months ago
Closed 13 months ago
#13790 closed defect (fixed)
Unicode digits should be not allowed in TLD of email address in wiki text
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.1 |
| Component: | wiki system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: |
Avoid unicode digits in domain part of email address in wiki formatting. |
||
| API Changes: | |||
| Internal Changes: | |||
Description
Test cases:
- foo@… (U+096c)
- foo@… (U+0cec)
- foo@… (U+ff16)
- foo@… (U+1d7e8)
-
trac/notification/mail.py
59 59 r"[a-zA-Z0-9.'+_-]+" '@' 60 60 # the domain name part (RFC:1035) 61 61 r'(?:[a-zA-Z0-9_-]+\.)+' # labels (but also allow '_') 62 r'[a-zA-Z](?:[-a-zA-Z \d]*[a-zA-Z\d])?' # TLD62 r'[a-zA-Z](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?' # TLD 63 63 ) 64 64 65 65 _mime_encoding_re = re.compile(r'=\?[^?]+\?[bq]\?[^?]+\?=', re.IGNORECASE)
Attachments (0)
Change History (1)
comment:1 by , 13 months ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.



Fixed in [17857] and merged in [17858].