mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Data passed through FormHelper::postLink is excluded from CSRF creation of an outer form. Subsequent fix for #8387.
This commit is contained in:
parent
7df96b3912
commit
95558d0bba
1 changed files with 1 additions and 1 deletions
|
@ -1883,7 +1883,7 @@ class FormHelper extends AppHelper {
|
||||||
if (isset($options['data']) && is_array($options['data'])) {
|
if (isset($options['data']) && is_array($options['data'])) {
|
||||||
foreach (Hash::flatten($options['data']) as $key => $value) {
|
foreach (Hash::flatten($options['data']) as $key => $value) {
|
||||||
$fields[$key] = $value;
|
$fields[$key] = $value;
|
||||||
$out .= $this->hidden($key, array('value' => $value, 'id' => false));
|
$out .= $this->hidden($key, array('value' => $value, 'id' => false, 'secure' => static::SECURE_SKIP));
|
||||||
}
|
}
|
||||||
unset($options['data']);
|
unset($options['data']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue