Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrectly generated URL path.
Refs #3442
  • Loading branch information
markstory committed May 7, 2014
1 parent 1103ca7 commit 5469840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/View/Helper/FormHelperTest.php
Expand Up @@ -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))
));
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -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;

Expand Down

0 comments on commit 5469840

Please sign in to comment.