#30043: AdminURLFieldWidget incorrectly unquotes URLs e.g. containing %2F
-------------------------------------+-------------------------------------
     Reporter:  Brenton Partridge    |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  admin, urlfield,     |             Triage Stage:  Accepted
  smart_urlquote, url, quote         |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * stage:  Unreviewed => Accepted


Comment:

 Hi Brenton.

 Thanks for the report.

 I'm going to Accept this for now. It looks right...


 {{{
 >>> from django.utils.html import smart_urlquote
 >>> smart_urlquote('%2F')
 '/'
 }}}

 ...but I'd quite like to see an example of the actual type of URL you're
 hitting problems with.

 > I'm happy to submit a patch and test case...

 Can you begin by adding a test case (here or in a PR) showing the failing
 example?
 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30043#comment:1>
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/068.fe98b4085ad8696ec7b266e0c8ae1e3d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to