Skip to content
Permalink
Browse files

BlueScreen: add support for escaping in highlighted title

  • Loading branch information...
janbarasek authored and dg committed Apr 20, 2019
1 parent ff09f3b commit a64230a3afa68d244afab22b1b2905838b2f40dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tracy/BlueScreen/BlueScreen.php
@@ -110,7 +110,7 @@ public function renderToFile(\Throwable $exception, string $file): bool
private function renderTemplate(\Throwable $exception, string $template, $toScreen = true): void
{
$messageHtml = preg_replace(
'#\'\S[^\']*\S\'|"\S[^"]*\S"#U',
'#\'\S(?:[^\']|\\\\\')*\S\'|"\S(?:[^"]|\\\\")*\S"#',
'<i>$0</i>',
htmlspecialchars((string) $exception->getMessage(), ENT_SUBSTITUTE, 'UTF-8')
);

0 comments on commit a64230a

Please sign in to comment.
You can’t perform that action at this time.