Yup, I know it should be url encoded. But if you URL encode it, it STILL produces a 400 error because it STILL contains a '%'
Strange that the only CakePHP site that I can find that copes with it without an error is the CakePHP website. http://cakephp.org/pages/% So, what are they doing right that so many others (including me) are doing wrong? http://overheard.it/people/%25 http://cheesecake-photoblog.org/demo/view/%25 I think the error is occurring in CakePHP before it hits any custom code... On Apr 3, 5:47 pm, eighties <joel.per...@gmail.com> wrote: > % is a reserved character for denoting url-encoded special characters > (e.g. space, '='). If you want to allow reserved characters in urls, > you need to urlencode them. > > For reference, the url-encoded value of "%" is "%25". > > -j. > > On Apr 3, 12:27 pm, RichardAtHome <richardath...@gmail.com> wrote: > > > Hi bakers! :-) > > > I'm pretty surprised I haven't come across this one before. > > > The following URL generated by the pagination helper causes a 400 Bad > > Request response: > > >http://localhost/projects/jisc_pims_19/outputs/index/page:2/find:a% > > > Remove the '%' from the URL and its all fine > > > If you change the url tohttp://localhost/projects/jisc_pims_19/% > > orhttp://localhost/projects/jisc_pims_19/programmes/view/% > > > you also get a bad request. > > > The following URL works as expected: > > >http://localhost/projects/jisc_pims_19/outputs?find=a%25 > > > I've check back to a bunch of other CakePHP apps I've written and they > > all exhibit the same behaviour :-( > > > After a bit more of a dig, it seems most CakePHP sites suffer the same > > problem too: > > >http://cheesecake-photoblog.org/demo/view/% > > >http://overheard.it/people/% > > >http://snook.ca/archives/cakephp/% > > > How do I (and everyone else) fix this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---