Edgewall Software
Modify

Opened 8 weeks ago

Closed 7 weeks 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

     
    5959        r"[a-zA-Z0-9.'+_-]+" '@'
    6060        # the domain name part (RFC:1035)
    6161        r'(?:[a-zA-Z0-9_-]+\.)+'  # labels (but also allow '_')
    62         r'[a-zA-Z](?:[-a-zA-Z\d]*[a-zA-Z\d])?'  # TLD
     62        r'[a-zA-Z](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?'  # TLD
    6363        )
    6464
    6565_mime_encoding_re = re.compile(r'=\?[^?]+\?[bq]\?[^?]+\?=', re.IGNORECASE)

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 7 weeks ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.