From 1f0c616974f95bf44d1380035439804a8af81fcc Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 14 Oct 2016 22:47:43 +0200 Subject: [PATCH] [ticket/14821] Replace escaped strong tags with actual tags Everything else will still be escaped. This will however add back support for bold text in exception messages. PHPBB3-14821 --- phpBB/phpbb/event/kernel_exception_subscriber.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpBB/phpbb/event/kernel_exception_subscriber.php b/phpBB/phpbb/event/kernel_exception_subscriber.php index 34c8422b0a..957dcedc5d 100644 --- a/phpBB/phpbb/event/kernel_exception_subscriber.php +++ b/phpBB/phpbb/event/kernel_exception_subscriber.php @@ -68,6 +68,9 @@ class kernel_exception_subscriber implements EventSubscriberInterface $message = call_user_func_array(array($this->user, 'lang'), array_merge(array($message), $exception->get_parameters())); } + // Show text in bold + $message = preg_replace('#<(/?)(strong)>#i', '<$1$2>', $message); + if (!$event->getRequest()->isXmlHttpRequest()) { page_header($this->user->lang('INFORMATION'));