Merge pull request #9414 from bancer/secure-form-url

Secure form url
This commit is contained in:
Mark Story 2016-09-06 12:42:34 -04:00 committed by GitHub
commit 9a66137e65

View file

@ -1888,7 +1888,7 @@ class FormHelper extends AppHelper {
}
$previousLastAction = $this->_lastAction;
$this->_lastAction($url);
$this->_lastAction($formUrl);
$out = $this->Html->useTag('form', $formUrl, $formOptions);
$out .= $this->Html->useTag('hidden', '_method', array(