% 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
