michi wrote:
> Ok, just one more thing...
> 
> One consequence of Paste doing percent-decoding is that the id cannot
> contain forward-slashes. Here is an example url:
> 
> http://example.com/topic/view/PL%2FSQL
> 
> In this case request.environ["PATH_INFO"] is /topic/view/PL/SQL, and
> there is no way for routes to tell if there was an escaped slash. The
> WSGI spec doesn't seem to specify whether the value of PATH_INFO
> should be percent-decoded or not. What's the expected behavior here?
> 
> Python Web Server Gateway Interface v1.0:
> http://www.python.org/dev/peps/pep-0333/

The WSGI spec refers to the CGI spec, which indicates that PATH_INFO 
should be url-unquoted.  Unfortunately as a result there's no way to 
distinguish %2f from /.  I would recommend translating this character to 
something else.

   Ian

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to