#9655: urlize should not quote already quoted urls.
---------------------------------------------+------------------------------
          Reporter:  flytwokites             |         Owner:  nobody
            Status:  reopened                |     Milestone:        
         Component:  Template system         |       Version:  1.0   
        Resolution:                          |      Keywords:  urlize
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by mtredinnick):

  * stage:  Unreviewed => Design decision needed

Comment:

 I'm not sure what to do in your first case. Maybe it should be treated the
 same way, too. Needs thought. This is certainly a bit of an edge-case, but
 I can see the use-case where a URL is cut-and-pasted into an email or
 other text and that text is run through the urlize filter before being
 displayed. It's more likely than not that it will already be encoded at
 that point.

 A URL of "www.mystore.com/30%OffCoupons" where the "%" is meant to be
 treated as unencoded is actually invalid (the URL spec includes the
 encoding requirement). So we need to have a guess at where the balance of
 use-cases goes: are people going to be using "real" URLs or things they
 hashed together themselves? We'll need some coins and a bit of time to
 toss them (although obviously I'm leaning slightly towards favouring the
 cut-and-paste scenario at the moment).

 I just don't see this as an immediate "definitely don't change" case,
 which is my logic for reopening. We might ultimately decide it's not worth
 changing, but we at least should work out how people are meant to operate
 with such URLs. I will move it to "design decision needed", though, which
 I should have done yesterday, so we remember to actually make a decision
 if it slips under the radar.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9655#comment:4>
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 django-updates@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to