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:
parent
1dd0ceabf6
commit
1f0c616974
@ -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('#<(/?)(strong)>#i', '<$1$2>', $message);
|
||||
|
||||
if (!$event->getRequest()->isXmlHttpRequest())
|
||||
{
|
||||
page_header($this->user->lang('INFORMATION'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user