Django

Code

Ticket #9189 (new)

Opened 1 year ago

Last modified 1 year ago

urlize filter doesn't do .us domains without http and www

Reported by: Greg Allard Assigned to: nobody
Milestone: Component: Template system
Version: 1.0 Keywords: urlize, filter
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Try tinyid.us as an example. This passes the url field test, but doesn't get urlized.

Attachments

9189.diff (499 bytes) - added by ericholscher on 02/25/09 21:55:57.

Change History

02/25/09 21:53:44 changed by ericholscher

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

The 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

02/25/09 21:55:57 changed by ericholscher

  • attachment 9189.diff added.

Add/Change #9189 (urlize filter doesn't do .us domains without http and www)




Change Properties
Action