Possible fix for _lastAction method

This commit is contained in:
Mischa ter Smitten 2016-09-22 21:33:43 +02:00
parent 197c2f4e60
commit 1ccdc21d5b

View file

@ -3107,7 +3107,7 @@ class FormHelper extends AppHelper {
* @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;