Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0676d841
Commit
0676d841
authored
Jul 26, 2007
by
Steven Wittens
Browse files
Re-add check_plain() in appropriate places after removing it from ip_address().
parent
e4731681
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
0676d841
...
...
@@ -891,7 +891,7 @@ function _drupal_bootstrap($phase) {
// Deny access to hosts which were banned - t() is not yet available.
if
(
drupal_is_denied
(
'host'
,
ip_address
()))
{
header
(
'HTTP/1.1 403 Forbidden'
);
print
'Sorry, '
.
ip_address
()
.
' has been banned.'
;
print
'Sorry, '
.
check_plain
(
ip_address
()
)
.
' has been banned.'
;
exit
();
}
break
;
...
...
modules/dblog/dblog.admin.inc
View file @
0676d841
...
...
@@ -154,7 +154,7 @@ function dblog_event($id) {
),
array
(
array
(
'data'
=>
t
(
'Hostname'
),
'header'
=>
TRUE
),
$dblog
->
hostname
,
check_plain
(
$dblog
->
hostname
)
,
),
array
(
array
(
'data'
=>
t
(
'Operations'
),
'header'
=>
TRUE
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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