diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-30 11:32:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-30 11:32:08 +0000 |
commit | 00fc298163ec610c55177196ca9550ae38f4e2ea (patch) | |
tree | 159dec1d0a2728bcb405c75cbc60aa5df4706271 /modules/simpletest | |
parent | e4857747ca016f14afd2cc002339bbad5149efb7 (diff) | |
download | brdo-00fc298163ec610c55177196ca9550ae38f4e2ea.tar.gz brdo-00fc298163ec610c55177196ca9550ae38f4e2ea.tar.bz2 |
- Patch #497612 by Moshe Weitzman et al: harden user login by correctly using the form API. Complete commit now. Thank you, thank you.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/session_test.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/session_test.module b/modules/simpletest/tests/session_test.module index eb656ce80..55613c97d 100644 --- a/modules/simpletest/tests/session_test.module +++ b/modules/simpletest/tests/session_test.module @@ -122,7 +122,7 @@ function _session_test_set_not_started() { * Implement hook_user(). */ function session_test_user_login($edit = array(), $user = NULL) { - if ($edit['name'] == 'session_test_user') { + if ($user->name == 'session_test_user') { // Exit so we can verify that the session was regenerated // before hook_user() was called. exit; |