#5751: Ampersand bug in $this->params['pass'] and $this->params['url']
-------------------------------+--------------------------------------------
Reporter: xbuzz | Owner:
Type: Bug | Status: reopened
Priority: High | Milestone:
Component: General | Version: RC3
Severity: Normal | Resolution:
Keywords: | Php_version: PHP 5
Cake_version: 1.2.0.7692 RC3 |
-------------------------------+--------------------------------------------
Comment (by bsweeney):
I recently ran into this problem on a site I'm developing. The problem is
definitely with the RewriteRule, because the bug is in Apache. The best
description I've found was by Matthew
Somerville[http://www.dracos.co.uk/code/apache-rewrite-problem/].
Essentially, Apache is unencoding ampersands when processing the URL
through mod_rewrite, and not encoding any output.
Hard to say how long a until a patch for Apache will be included. And
should CakePHP rely on that, hack around the problem, or modify the way
the URL is parsed? Personally the last of the three seems the most robust
to me.
In the meantime, I've found that triple-encoding ampersands (%252526)
seems to work on my install.
--
Ticket URL: <https://trac.cakephp.org/ticket/5751#comment:4>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---