diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-08 13:57:22 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-08 13:57:22 +0000 |
commit | 4a347be7ed2b6afa6e18ad87a0f78e4558e1e0b7 (patch) | |
tree | e154aa1de1db910727fd4f7fbacdbe9b9e179504 | |
parent | 15b52931a29061b43fe6c626511079ba8fdfdb1a (diff) | |
download | brdo-4a347be7ed2b6afa6e18ad87a0f78e4558e1e0b7.tar.gz brdo-4a347be7ed2b6afa6e18ad87a0f78e4558e1e0b7.tar.bz2 |
#173225 corrective fix: there were two uses of the ip variable, so revert to the original patch
-rw-r--r-- | modules/user/user.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 021b6eb3c..335c75fc2 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3478,6 +3478,7 @@ function user_block_user_action(&$object, $context = array()) { * Adds an access rule that blocks the user's IP address. */ function user_block_ip_action() { + $ip = ip_address(); db_query("INSERT INTO {access} (mask, type, status) VALUES ('%s', '%s', %d)", $ip, 'host', 0); - watchdog('action', 'Banned IP address %ip', array('%ip' => ip_address())); + watchdog('action', 'Banned IP address %ip', array('%ip' => $ip)); } |