On Fri, Jul 25, 2008 at 4:18 PM, Stefano <[EMAIL PROTECTED]> wrote:
>
>
>
> On Jul 25, 12:10 am, "Lawrence Oluyede" <[EMAIL PROTECTED]> wrote:
>>
>> Ok  I'll try tomorrow
>>
>
> I have a similar problem with '/' escape in a params in the url.
>
> Example
>
> routes '/controller/:code/:var' (version 1.9.1)
>
> code = 0000/3 (escaped 0000%2F3)
> var = 01
> url = http://localhost:5000/controller/0000%2F3/0
>
> it raises a 404 error. Without backslash I haven't problem.
>
> Can someone help me?

I think there's no fix for this. / is the path separator in URL
specification (see http://www.faqs.org/rfcs/rfc1738.html).
So you should avoid considering '/' as part of your "code"

You are not bound to expose database / backend IDs on the web (and in
most cases you should not) so I think the best way is to
use another convention and in your code translate the code into
something meaningful for your logic.

HTH


-- 
Lawrence, stacktrace.it - oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair

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