From 0676d8410fda9b67d7c250e63011d45fcc0ae1b2 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 26 Jul 2007 21:42:52 +0000 Subject: Re-add check_plain() in appropriate places after removing it from ip_address(). --- includes/bootstrap.inc | 2 +- modules/dblog/dblog.admin.inc | 2 +- 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), -- cgit v1.2.3