#15718: Django unquotes urls and not able to distinguish %2F and /
-------------------------------------+-------------------------------------
     Reporter:  fed239               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Other)         |                  Version:  1.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  urls, url resolver,  |             Triage Stage:
  unquote, %2F                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by gst):

 * ui_ux:   => 0


Comment:

 I've ran into the exact same issue :/

 The main problem I see is that, as far as I understand actually, django
 compares the url in its url-decoded form against each possible regex
 pattern. So the problems we are encountering with '/' encoded url value
 (%2F). Though I could be wrong 'cause I've not went to check django code.
 If I'm not wrong about this:

 Wouldn't there be a possibility to tell django to compare some url regex
 pattern against the original url value in its non-decoded form ??

 regards,

 gst.

--
Ticket URL: <https://code.djangoproject.com/ticket/15718#comment:6>
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/064.69f2642ddae16a76ffe12a65f17e9828%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to