summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-30 11:32:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-30 11:32:08 +0000
commit00fc298163ec610c55177196ca9550ae38f4e2ea (patch)
tree159dec1d0a2728bcb405c75cbc60aa5df4706271 /modules/simpletest/tests
parente4857747ca016f14afd2cc002339bbad5149efb7 (diff)
downloadbrdo-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/tests')
-rw-r--r--modules/simpletest/tests/session_test.module2
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;