#5837: Missing Controller when subdirectory includes a space
-----------------------------------------------------------------+----------
Reporter: joelstein |
Type: Bug
Status: new |
Priority: Medium
Milestone: 1.2.x.x |
Component: Routing/Dispatcher
Version: RC3 |
Severity: Normal
Keywords: missing controller dispatcher space subdirectory |
Php_version: n/a
Cake_version: 1.2 RC3 |
-----------------------------------------------------------------+----------
There is a bug in Dispatcher which does not correctly decode urls when the
app is installed in a subdirectory with spaces. For instance, suppose I
have a website at http://localhost/Some%20Website. The %20 is a space,
but it's not getting mapped to the physical path because the %20 is not
being decoded. Instead, I get a "missing controller" error, like this
guy:
[[BR]][[BR]]
http://groups.google.com/group/cake-
php/browse_thread/thread/c4c0b645f40acd0b/91a8076fb2b37e90
[[BR]][[BR]]
So I dug into the Dispatcher's uri() function and found the spot where it
needs to be decoded (if using $_SERVER's 'REQUEST_URI' variable).
Attached is a diff with a test included. (This is my first test; I hope
you like it.)
--
Ticket URL: <https://trac.cakephp.org/ticket/5837>
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
-~----------~----~----~----~------~----~------~--~---