﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36017	Urlize email address allows punctuation in domains	Mike Edmunds	Gregory Mariani	"The urlize template filter incorrectly recognizes domains in email addresses, linkifying punctuation that shouldn't be included in the address:

{{{#!python
# Django 5.1.4, Python 3.12.4
from django.template.defaultfilters import urlize
urlize(""email me@example.com,then I'll respond"")
'email <a href=""mailto:me@example.com,then"">me@example.com,then</a> I&#x27;ll respond'
urlize(""test@example?;+!.com"")
'<a href=""mailto:test@example?;+!.com"">test@example?;+!.com</a>'
}}}

The first example should probably stop before the comma. The second example probably shouldn't linkify at all.

See also #36012."	Bug	closed	Utilities	5.1	Normal	fixed			Ready for checkin	1	0	0	0	0	0
