Skip to content
This repository
Browse code

Fix issue with missing base on redirect route.

The request data wasn't set in Router when redirect routes are processed.
This caused the base to become missing. This causes issues with applications
running in a subdirectory.
  • Loading branch information...
commit 32b48ecc7cc8fcf17ccf0d3ceaf9285338336208 1 parent 841e7aa
Mark Story authored October 22, 2011
6  lib/Cake/Network/CakeRequest.php
@@ -34,7 +34,11 @@ class CakeRequest implements ArrayAccess {
34 34
  *
35 35
  * @var array
36 36
  */
37  
-	public $params = array();
  37
+	public $params = array(
  38
+		'plugin' => null,
  39
+		'controller' => null,
  40
+		'action' => null,
  41
+	);
38 42
 
39 43
 /**
40 44
  * Array of POST data.  Will contain form data as well as uploaded files.
2  lib/Cake/Routing/Dispatcher.php
@@ -75,8 +75,8 @@ public function dispatch(CakeRequest $request, CakeResponse $response, $addition
75 75
 			return;
76 76
 		}
77 77
 
78  
-		$request = $this->parseParams($request, $additionalParams);
79 78
 		Router::setRequestInfo($request);
  79
+		$request = $this->parseParams($request, $additionalParams);
80 80
 		$controller = $this->_getController($request, $response);
81 81
 
82 82
 		if (!($controller instanceof Controller)) {

0 notes on commit 32b48ec

Please sign in to comment.
Something went wrong with that request. Please try again.