Commit c9b6d738 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#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
......@@ -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')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment