diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-02-27 14:57:54 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-02-27 14:57:54 +0000 |
commit | aeead6cf9c7fa9eeb820391099257c683f54e066 (patch) | |
tree | 86306a52601650b02d115a03548c7eeaa15d1b8d /includes | |
parent | 784202418fcd0669271389a83b955e6ef2055f28 (diff) | |
download | brdo-aeead6cf9c7fa9eeb820391099257c683f54e066.tar.gz brdo-aeead6cf9c7fa9eeb820391099257c683f54e066.tar.bz2 |
#48209, Prevent system module forms (system/theme settings) from saving 'reset' to the variables table., patch by Markus Petrux
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 83936eed0..5a392880b 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -151,9 +151,9 @@ function drupal_validate_form($form_id, &$form, $callback = NULL) { } function drupal_submit_form($form_id, $form, $callback = NULL) { - global $form_values; + // Prevent system module forms (system/theme settings) from saving certain form fields to the variables table. + unset($GLOBALS['form_values']['submit'], $GLOBALS['form_values']['reset'], $GLOBALS['form_values']['form_id']); - unset($GLOBALS['form_values']['submit'], $GLOBALS['form_values']['form_id']); if (isset($form['#submit'])) { foreach ($form['#submit'] as $function => $args) { if (function_exists($function)) { |