#6892: Warn about raw "%" in redirect_to strings.
--------------------------------------+------------------------------------
     Reporter:  daonb <bennydaon@…>   |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  closed
    Component:  Generic views         |                  Version:  SVN
     Severity:  Normal                |               Resolution:  wontfix
     Keywords:  unicode, url          |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  1                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by claudep):

 * status:  reopened => closed
 * resolution:   => wontfix


Comment:

 The documentation for the new class-based view !RedirectView is now
 clear:[[BR]]
 ''Because keyword interpolation is always done (even if no arguments are
 passed in), any "%" characters in the URL must be written as "%%" so that
 Python will convert them to a single percent sign on output.''[[BR]]
 https://docs.djangoproject.com/en/dev/ref/class-based-
 views/#django.views.generic.base.RedirectView

 As for the use-case of the OP, I think that a .replace('%', '%%') should
 be appended to the urlencode() call.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/6892#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 post to this group, send email to [email protected].
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