#36710: urlize fails to convert domain-only urls from the original top-level
domains if a host is given
-------------------------------------+-------------------------------------
Reporter: Mehraz Hossain | Owner: Mehraz
Rumman | Hossain Rumman
Type: Bug | Status: assigned
Component: Template system | Version: 6.0
Severity: Release blocker | Resolution:
Keywords: urlize | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):
* cc: JaeHyuckSa (added)
* component: Core (URLs) => Template system
* keywords: urlizee => urlize
* needs_tests: 1 => 0
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
* summary: ` from django.utils.html import urlize ` mismatch between
version =>
urlize fails to convert domain-only urls from the original top-level
domains if a host is given
Comment:
Thanks for the report (and Bruno for the triage).
Failing test:
{{{#!py
diff --git a/tests/utils_tests/test_html.py
b/tests/utils_tests/test_html.py
index 681071bf03..0c274a0cbc 100644
--- a/tests/utils_tests/test_html.py
+++ b/tests/utils_tests/test_html.py
@@ -425,6 +425,10 @@ class TestUtilsHtml(SimpleTestCase):
"http://www.foo.bar/",
'<a href="http://www.foo.bar/">http://www.foo.bar/</a>',
),
+ (
+ "host.djangoproject.com",
+ '<a
href="http://host.djangoproject.com">host.djangoproject.com</a>',
+ ),
(
"Look on www.نامهای.com.",
"Look on <a "
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36710#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019a555e7317-504a6679-12a1-481d-862e-137dad8bcc7d-000000%40eu-central-1.amazonses.com.