Commit 4a347be7 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#173225 corrective fix: there were two uses of the ip variable, so revert to the original patch

parent 15b52931
......@@ -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));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment