diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-10-14 22:47:43 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-10-14 22:47:43 +0200 |
commit | 1f0c616974f95bf44d1380035439804a8af81fcc (patch) | |
tree | 8f424a98f0851280976ebe6a2f4b9c025b78bf6b | |
parent | 1dd0ceabf6e3cdc49ea6a2abe3ad8fcece4cca31 (diff) | |
download | forums-1f0c616974f95bf44d1380035439804a8af81fcc.tar forums-1f0c616974f95bf44d1380035439804a8af81fcc.tar.gz forums-1f0c616974f95bf44d1380035439804a8af81fcc.tar.bz2 forums-1f0c616974f95bf44d1380035439804a8af81fcc.tar.xz forums-1f0c616974f95bf44d1380035439804a8af81fcc.zip |
[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
-rw-r--r-- | phpBB/phpbb/event/kernel_exception_subscriber.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 <strong> text in bold + $message = preg_replace('#<(/?)(strong)>#i', '<$1$2>', $message); + if (!$event->getRequest()->isXmlHttpRequest()) { page_header($this->user->lang('INFORMATION')); |