diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-25 00:06:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-25 00:06:19 +0000 |
commit | bcc0741b67e83ad5a5da49e145fb3035b435584e (patch) | |
tree | aeb6727eace4f3a671ed6718eb6b45b231860659 /modules/simpletest/drupal_web_test_case.php | |
parent | 2079d300b43e597d5f532caa4deef1111856a31d (diff) | |
download | brdo-bcc0741b67e83ad5a5da49e145fb3035b435584e.tar.gz brdo-bcc0741b67e83ad5a5da49e145fb3035b435584e.tar.bz2 |
- Patch #951486 by Damien Tournoud: invalid placeholders in exception messages during update.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } /** |