Skip to content
Snippets Groups Projects
Commit c9b6d738 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#182799 by Moshe Weitzman: form_state['values']['form_build_id'] should not be...

#182799 by Moshe Weitzman: form_state['values']['form_build_id'] should not be saved as a system setting when a setting form is submitted
parent 0ada4f13
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -876,7 +876,7 @@ function system_settings_form_submit($form, &$form_state) {
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
// Exclude unnecessary elements.
unset($form_state['values']['submit'], $form_state['values']['reset'], $form_state['values']['form_id'], $form_state['values']['op'], $form_state['values']['form_token']);
unset($form_state['values']['submit'], $form_state['values']['reset'], $form_state['values']['form_id'], $form_state['values']['op'], $form_state['values']['form_token'], $form_state['values']['form_build_id']);
foreach ($form_state['values'] as $key => $value) {
if ($op == t('Reset to defaults')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment