cakephp2-php8/lib/Cake/Controller/Component
Mark Story mark@mark-story.com bb3a1d546b Fixing RequesHandler::prefers(). It was previously entirely wrong.
It took the ordered list of accept types, and blindly assumed
the first in the list was the most preferred.  This is an incorrect
assumption to make, as all types with the same q value are equal.

- Using CakeRequest::parseAccept() to access only the most preferred
content types.
- Using in_array() to check for the desired type.
- Updating tests for RequestHandler.
2011-09-01 00:20:54 +01:00
..
Auth Added visibility in some methods and attributes. 2011-08-18 22:30:28 -04:00
AclComponent.php Added visibility in some methods and attributes. 2011-08-18 22:30:28 -04:00
AuthComponent.php Fixed the allow method to parameters not be required. 2011-08-30 21:12:57 -04:00
CookieComponent.php Merge branch '2.0-api-doc' into 2.0 2011-08-26 20:22:26 -04:00
EmailComponent.php Merge remote-tracking branch 'origin/2.0' into 2.0-api-doc 2011-08-20 01:47:27 -04:00
PaginatorComponent.php Removing trailing spaces. 2011-08-15 23:55:08 -04:00
RequestHandlerComponent.php Fixing RequesHandler::prefers(). It was previously entirely wrong. 2011-09-01 00:20:54 +01:00
SecurityComponent.php Removing trailing spaces. 2011-08-15 23:55:08 -04:00
SessionComponent.php Removing trailing spaces. 2011-08-15 23:55:08 -04:00