diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-25 08:40:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-25 08:40:53 +0000 |
commit | 552b5e5e7aec5d50c192ce40e18bdce63f653503 (patch) | |
tree | 7a47eb23a605420513319089c9131237a6fe155a /includes/form.inc | |
parent | d20ed7e3be10038f9304b98db1f3cfcbf55b6689 (diff) | |
download | brdo-552b5e5e7aec5d50c192ce40e18bdce63f653503.tar.gz brdo-552b5e5e7aec5d50c192ce40e18bdce63f653503.tar.bz2 |
- Patch #46227 by yogadex: fixed problem with form validation.
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 8d98dc0ff..ab04bbcc9 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -121,7 +121,7 @@ function drupal_validate_form($form_id, &$form, $callback = NULL) { global $form_values; if (isset($form['#token'])) { - if ($form_values['form_token'] != md5($_SERVER['REMOTE_ADDR'] . $form['#token'] . variable_get('drupal_private_key', ''))) { + if ($form_values['form_token'] != md5(session_id() . $form['#token'] . variable_get('drupal_private_key', ''))) { // setting this error will cause the form to fail validation form_set_error('form_token', t('Validation error, please try again. If this error persists, please contact the site administrator.')); } |