Skip to content
Permalink
Browse files

Router in 1.x does not prevent duplicate base paths.

Since the URL going into _lastAction() has already been run through
Router::url() we can just prepend FULL_BASE_URL to it.

Refs #3549
  • Loading branch information...
markstory committed Jun 14, 2014
1 parent 82579ff commit 74808f911e0fc4473567988445fc2b44e4e359a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helpers/form.php
@@ -342,7 +342,7 @@ function create($model = null, $options = array()) {
* @return void
*/
function _lastAction($url) {
$action = Router::url($url, true);
$action = FULL_BASE_URL . $url;
$parts = parse_url($action);
$this->_lastAction = $parts['path'];
}

0 comments on commit 74808f9

Please sign in to comment.
You can’t perform that action at this time.