summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-07-26 21:42:52 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-07-26 21:42:52 +0000
commit0676d8410fda9b67d7c250e63011d45fcc0ae1b2 (patch)
tree854e26bcc05da00640fc17e0eb2e7aba2bbe2d82
parente473168106effa75c4080c6b0216c5c9befe42d3 (diff)
downloadbrdo-0676d8410fda9b67d7c250e63011d45fcc0ae1b2.tar.gz
brdo-0676d8410fda9b67d7c250e63011d45fcc0ae1b2.tar.bz2
Re-add check_plain() in appropriate places after removing it from ip_address().
-rw-r--r--includes/bootstrap.inc2
-rw-r--r--modules/dblog/dblog.admin.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 404da154b..c57929982 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -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;
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc
index f2389e6e1..2a763f8bf 100644
--- a/modules/dblog/dblog.admin.inc
+++ b/modules/dblog/dblog.admin.inc
@@ -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),