I've noticed some odd behavior when trying to use the CakePHP
mod_rewrite rules and urls with %26 in them. When 'RewriteRule ^(.*)$
index.php?url=$1 [QSA,L]' is used to parse a url with %26, it's
converted to an &.

For example, if you setup a route for /candy/* =>
CandyController::find() and goto /candy/M%26M it's rewritten as
index.php?url=M&M. PHP sees this as array('url' => 'M', 'M' => null).

I thought this was an obvious mistake on my part with setting up
mod_rewrite or the .htaccess file, but I didn't find any documentation
of this restriction. Is there some kind of mod_rewrite setting to
disable this behavior? Or is this a known limitation of CakePHP and
developers simply never pass any characters via the URL that aren't
urlencoded?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to