[cgiapp] CAP Dispatch and encoded backslashes
B. Estrade
estrabd at gmail.com
Wed Jun 6 23:42:44 EDT 2012
On Thu, Jun 07, 2012 at 01:17:12PM +1000, Ron Savage wrote:
> Hi Brett
>
> On 07/06/12 05:37, B. Estrade wrote:
> > I am having an issue with CAP Dispatch that seems to be rearing its
> > ugly head when I send, as part of the route, serialized JSON data.
> > The issue is that I have a value with a backslash in it.
> >
> > I am pretty sure the URL parsing done by Dispatch is splitting on this
> > backslash, but I though that it wouldn't be a problem since it's being
> > sent as an encoded string.
> >
> > When I don't include this one field, it works; when I do, I get a 404
> > thrown by Dispatch.
>
> The documentation says:
> To get the name of the application module the path is split on
> backslahes (C</>).
>
> Clearly (?) it means slash (/), not backslash (\).
You are right, it's not the backslash, it's the forward slash. I saw
that part in the docs, but I was not sure how to include that in the
serialized string; I assumed if it was uri encoded it'd be fine.
Thanks for pointing out the error in my email
Brett
>
> Which do you mean?
>
> --
> Ron Savage
> http://savage.net.au/
> Ph: 0421 920 622
>
> ##### CGI::Application community mailing list ################
> ## ##
> ## To unsubscribe, or change your message delivery options, ##
> ## visit: http://lists.openlib.org/mailman/listinfo/cgiapp ##
> ## ##
> ## Web archive: http://lists.openlib.org/pipermail/cgiapp/ ##
> ## Wiki: http://cgiapp.erlbaum.net/ ##
> ## ##
> ################################################################
>
More information about the cgiapp
mailing list