Skip to content

Commit

Permalink
Possible fix for _lastAction method
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Sep 22, 2016
1 parent 197c2f4 commit 1ccdc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -3107,7 +3107,7 @@ protected function _secureFieldName($options) {
* @return void
*/
protected function _lastAction($url) {
$action = html_entity_decode($this->url($url), ENT_QUOTES);
$action = html_entity_decode($this->url($url, true), ENT_QUOTES);
$query = parse_url($action, PHP_URL_QUERY);
$query = $query ? '?' . $query : '';
$this->_lastAction = parse_url($action, PHP_URL_PATH) . $query;
Expand Down

0 comments on commit 1ccdc21

Please sign in to comment.