#9189: urlize filter doesn't do .us domains without http and www
--------------------------------------+-------------------------------------
Reporter: Greg Allard | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: 1.0
Resolution: | Keywords: urlize, filter
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by ericholscher):
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
The
[http://code.djangoproject.com/browser/django/trunk/django/utils/html.py#L79
docstring for urlize] says that it only works on .com .org and .net
domains. I think this is meant to urlize the simple cases of common urls.
I'm accepting this ticket, because it either needs to be documented that
it only works for those three TLD's, or it needs to be fixed so that it
works for any "URL looking string". That has problems (such as marking
non-urls as urls), so I'm assuming fixing the docs is the correct result.
Current docs:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#urlize
--
Ticket URL: <http://code.djangoproject.com/ticket/9189#comment:1>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---