﻿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
19601	"urlize method fails with ValueError on urls with ""["" on python 2.7"	EmilStenstrom	nobody	"This issue has previously been reported when dealing with URLFields: https://code.djangoproject.com/ticket/16664

But it's also apparent in the urlize-filter (and probably in other places aswell)


{{{
from django.template.defaultfilters import urlize
urlize('http://[a')
}}}


{{{
Traceback (most recent call last):
  File ""<stdin>"", line 1, in <module>
  File ""C:\Program Files (x86)\python\lib\site-packages\django\template\defaultfilters.py"", line 43, in _dec
    return func(*args, **kwargs)
  File ""C:\Program Files (x86)\python\lib\site-packages\django\template\defaultfilters.py"", line 334, in urlize
    return mark_safe(urlize_impl(value, nofollow=True, autoescape=autoescape))
  File ""C:\Program Files (x86)\python\lib\site-packages\django\utils\functional.py"", line 176, in wrapper
    return func(*args, **kwargs)
  File ""C:\Program Files (x86)\python\lib\site-packages\django\utils\html.py"", line 166, in urlize
    url = smart_urlquote(middle)
  File ""C:\Program Files (x86)\python\lib\site-packages\django\utils\html.py"", line 107, in smart_urlquote
    scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
  File ""C:\Program Files (x86)\python\lib\urlparse.py"", line 183, in urlsplit
    raise ValueError(""Invalid IPv6 URL"")
ValueError: Invalid IPv6 URL
}}}
"	Uncategorized	closed	Core (URLs)	1.4	Normal	duplicate			Unreviewed	0	0	0	0	0	0
