#22267: django.utils.html.smart_urlquote() is incorrectly unquoting the url
---------------------------+------------------------------------
     Reporter:  meenzam@…  |                    Owner:  nobody
         Type:  Bug        |                   Status:  new
    Component:  Utilities  |                  Version:  master
     Severity:  Normal     |               Resolution:
     Keywords:             |             Triage Stage:  Accepted
    Has patch:  0          |      Needs documentation:  0
  Needs tests:  0          |  Patch needs improvement:  1
Easy pickings:  0          |                    UI/UX:  0
---------------------------+------------------------------------

Comment (by ienzam):

 Read the bug and ticket.
 From RFC 2396 ([http://www.ietf.org/rfc/rfc2396.txt]), valid characters
 for different parts of the url are following:
 path => {{{Alphanumeric and /;-_.!~*'():@&=+$,}}}
 query and fragment => {{{Alphanumeric and /;-_.!~*'():@&=+$,?}}} (only
 differs from path with an extra {{{?}}})

 Can we not unquote and quote again because it can introduce some corner
 cases.
 We can check if the url is already quoted or not (which was done till
 v1.4).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22267#comment:12>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.a26fcfab46a411ad57922ffae5fd55eb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to