1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-01 21:27:55 +02:00

[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
This commit is contained in:
Marc Alexander 2016-10-14 22:47:43 +02:00
parent 1dd0ceabf6
commit 1f0c616974
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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 <strong> text in bold
$message = preg_replace('#&lt;(/?)(strong)&gt;#i', '<$1$2>', $message);
if (!$event->getRequest()->isXmlHttpRequest())
{
page_header($this->user->lang('INFORMATION'));