Commit 0676d841 authored by Steven Wittens's avatar Steven Wittens
Browse files

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

parent e4731681
......@@ -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;
......
......@@ -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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment