From bb554d049fdfaa42f403da5ed34ba8b949b915fc Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Wed, 14 Sep 2011 12:23:06 -0700 Subject: [PATCH 682/682] #1174496 by grendzy and greg.1.anderson: call check_plain instead of filter_xss early in the bootstrap, before filter_xss is available. --- includes/common.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index dfd6c4f..756fec9 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -652,7 +652,7 @@ function drupal_error_handler($errno, $message, $filename, $line, $context) { } } - $entry = check_plain($types[$errno]) .': '. filter_xss($message) .' in '. check_plain($filename) .' on line '. check_plain($line) .'.'; + $entry = check_plain($types[$errno]) .': '. (function_exists('filter_xss') ? filter_xss($message) : check_plain($message)) .' in '. check_plain($filename) .' on line '. check_plain($line) .'.'; // Force display of error messages in update.php. if (variable_get('error_level', 1) == 1 || strstr($_SERVER['SCRIPT_NAME'], 'update.php')) { -- 1.7.1