diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-25 13:59:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-25 13:59:05 +0000 |
commit | 02938481995664b80b8711a5e1b74f7e9f3e65f9 (patch) | |
tree | 9c953f00d07503b0be932843f3049d2a3baa841b /includes/form.inc | |
parent | b8832d76a0b710dfad011740899e4127565c5133 (diff) | |
download | brdo-02938481995664b80b8711a5e1b74f7e9f3e65f9.tar.gz brdo-02938481995664b80b8711a5e1b74f7e9f3e65f9.tar.bz2 |
- Patch by chx: made form tokens work.
Diffstat (limited to 'includes/form.inc')
-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 ab04bbcc9..2d13ed142 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -68,9 +68,9 @@ function drupal_get_form($form_id, &$form, $callback = NULL) { variable_set('drupal_private_key', mt_rand()); } - $form['form_token'] = array('#type' => 'hidden', '#value' => md5(session_id() . $form['#token'] . variable_get('drupal_private_key', ''))); + $form['form_token'] = array('#type' => 'hidden', '#default_value' => md5(session_id() . $form['#token'] . variable_get('drupal_private_key', ''))); } - $form['form_id'] = array('#type' => 'hidden', '#default_value' => $form_id); + $form['form_id'] = array('#type' => 'hidden', '#value' => $form_id); $form = array_merge(_element_info('form'), $form); |