Skip to content
Permalink
Browse files

Fix incorrectly generated URL path.

Refs #3442
  • Loading branch information...
markstory committed May 7, 2014
1 parent 1103ca7 commit 5469840c80dda7e2d345f889a1ae0aa8b2722294
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  2. +1 −1 lib/Cake/View/Helper/FormHelper.php
@@ -1378,7 +1378,7 @@ public function testSecuredAndDisabled() {
public function testSecuredFormUrlIgnoresHost() {
$this->Form->request['_Token'] = array('key' => 'testKey');
$expected = '5181b484c13caea4776618ed26a3aebbb026ecd8%3A';
$expected = '0ff0c85cd70584d8fd18fa136846d22c66c21e2d%3A';
$this->Form->create('Address', array(
'url' => array('controller' => 'articles', 'action' => 'view', 1, '?' => array('page' => 1))
));
@@ -468,7 +468,7 @@ public function create($model = null, $options = array()) {
}
$query = parse_url($action, PHP_URL_QUERY);
if ($query) {
$query .= '?';
$query = '?' . $query;
}
$this->_lastAction = parse_url($action, PHP_URL_PATH) . $query;

0 comments on commit 5469840

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