Opened 13 years ago
Closed 13 years ago
#20172 closed Bug (fixed)
utils.html.urlize does not recognize IPv6 URLs
| Reported by: | Marc Aymerich | Owned by: | nobody |
|---|---|---|---|
| Component: | Utilities | Version: | 1.5 |
| Severity: | Normal | Keywords: | urlize, ipv6 |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Current urlize regex does not interpret IPv6 URLs because of being between brackets: [%(ipv6_address)s]
>>> from django.utils.html import urlize
>>> urlize("http://[fdf5:5351:1dfd::2]/api/nodes/81")
u'http://[fdf5:5351:1dfd::2]/api/nodes/81'
Change History (2)
comment:1 by , 13 years ago
| Easy pickings: | set |
|---|---|
| Has patch: | set |
comment:2 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Pull request https://github.com/django/django/pull/981 fixes the issue and also adds a testcase for IPv6 URLs