Re-add check_plain() in appropriate places after removing it from ip_address().

6.x
Steven Wittens 2007-07-26 21:42:52 +00:00
parent e473168106
commit 0676d8410f
2 changed files with 2 additions and 2 deletions

View File

@ -891,7 +891,7 @@ function _drupal_bootstrap($phase) {
// Deny access to hosts which were banned - t() is not yet available. // Deny access to hosts which were banned - t() is not yet available.
if (drupal_is_denied('host', ip_address())) { if (drupal_is_denied('host', ip_address())) {
header('HTTP/1.1 403 Forbidden'); header('HTTP/1.1 403 Forbidden');
print 'Sorry, '. ip_address() .' has been banned.'; print 'Sorry, '. check_plain(ip_address()) .' has been banned.';
exit(); exit();
} }
break; break;

View File

@ -154,7 +154,7 @@ function dblog_event($id) {
), ),
array( array(
array('data' => t('Hostname'), 'header' => TRUE), array('data' => t('Hostname'), 'header' => TRUE),
$dblog->hostname, check_plain($dblog->hostname),
), ),
array( array(
array('data' => t('Operations'), 'header' => TRUE), array('data' => t('Operations'), 'header' => TRUE),