Just wanted to add, I'm guessing that somehow there's a double up on
unquote_plus() that moves %2B to + and then to space, but only in the
route matcher, when it's dealing with the path.
- Aston
On Dec 18, 10:15 pm, aston <[EMAIL PROTECTED]> wrote:
> I'm having some weird issues with plusses in urls. Here's a mocked up
> example:
>
> Say I have a route like...
>
> map.connect('/route/*path', controller='web', action='route', path='')
>
> If I go to "http://domain.com/route/path%20here", path gets set to
> "path here", which is completely expected. However, if I go to "http://
> domain.com/route/path%2Bhere" (note %2B, not 20%--plus vs. space), I
> get path set to "path here" still, despite the fact that it really
> should be "path+here".
>
> Playing around similarly, but with the %20/%2B switch happening in the
> query params, like "http://domain.com/route/easy?a=path%20here" and
> "http://domain.com/route/easy?a=path%2bhere", everything seems happy.
>
> Am I wrong to assume that escaping the plus should work in the path?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---