From bcc0741b67e83ad5a5da49e145fb3035b435584e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 Oct 2010 00:06:19 +0000 Subject: - Patch #951486 by Damien Tournoud: invalid placeholders in exception messages during update. --- modules/simpletest/drupal_web_test_case.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/simpletest/drupal_web_test_case.php') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 8b57b174c..cb1473ff4 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -517,7 +517,8 @@ abstract class DrupalTestCase { 'file' => $exception->getFile(), )); require_once DRUPAL_ROOT . '/includes/errors.inc'; - $this->error(t('%type: %message in %function (line %line of %file).', _drupal_decode_exception($exception)), 'Uncaught exception', _drupal_get_last_caller($backtrace)); + // The exception message is run through check_plain() by _drupal_decode_exception(). + $this->error(t('%type: !message in %function (line %line of %file).', _drupal_decode_exception($exception)), 'Uncaught exception', _drupal_get_last_caller($backtrace)); } /** -- cgit v1.2.3