Skip to content
Permalink
Browse files

Applying optimization in Dispatcher::parseParams() from 'robustsoluti…

…on'. Fixes #309
  • Loading branch information...
markstory committed Nov 15, 2009
1 parent 17e377d commit 6039d6ebe495533107711b7c1117081476d0718c
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/dispatcher.php
@@ -271,7 +271,7 @@ function parseParams($fromUrl) {
$params['form']['_method'] = env('HTTP_X_HTTP_METHOD_OVERRIDE');
}
if (isset($params['form']['_method'])) {
if (isset($_SERVER) && !empty($_SERVER)) {
if (!empty($_SERVER)) {
$_SERVER['REQUEST_METHOD'] = $params['form']['_method'];
} else {
$_ENV['REQUEST_METHOD'] = $params['form']['_method'];

0 comments on commit 6039d6e

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.