[ticket/14821] Simplify regex for converting <strong> tags back to HTML

PHPBB3-14821
This commit is contained in:
Marc Alexander 2016-10-18 22:07:54 +02:00
parent 1f0c616974
commit d98a1c4bc4
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -69,7 +69,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
}
// Show <strong> text in bold
$message = preg_replace('#&lt;(/?)(strong)&gt;#i', '<$1$2>', $message);
$message = preg_replace('#&lt;(/?strong)&gt;#i', '<$1>', $message);
if (!$event->getRequest()->isXmlHttpRequest())
{