diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-22 07:39:09 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-22 07:39:09 +0000 |
commit | 45731a4e60bfeda4036398783351f49e4cdd07f1 (patch) | |
tree | 769c941e98be6e6d659e5c59a201515de1a64d52 /includes | |
parent | 800f2d9aa461bf65c7e971de388d5367af1996bf (diff) | |
download | brdo-45731a4e60bfeda4036398783351f49e4cdd07f1.tar.gz brdo-45731a4e60bfeda4036398783351f49e4cdd07f1.tar.bz2 |
#398902 by kscheirer and alexanderpas: Type-check passwords.
Diffstat (limited to 'includes')
-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 c5803b46e..83392a3f7 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1651,7 +1651,7 @@ function password_confirm_validate($form, &$form_state) { $pass1 = trim($form['pass1']['#value']); if (!empty($pass1)) { $pass2 = trim($form['pass2']['#value']); - if ($pass1 != $pass2) { + if (strcmp($pass1, $pass2)) { form_error($form, t('The specified passwords do not match.')); } } |