Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4a347be7
Commit
4a347be7
authored
Sep 08, 2007
by
Gábor Hojtsy
Browse files
#173225
corrective fix: there were two uses of the ip variable, so revert to the original patch
parent
15b52931
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
4a347be7
...
...
@@ -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
));
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment