Skip to content

Commit

Permalink
BlueScreen: simplified HTML comment escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 9, 2023
1 parent d3b9ead commit 40832ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tracy/BlueScreen/assets/page.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ $chain = Helpers::getExceptionChain($exception);
<meta name="generator" content="Tracy by Nette Framework">

<title><?= Helpers::escapeHtml($title . ': ' . $exception->getMessage() . $code) ?></title>
<!-- in <?= str_replace('--', '- ', Helpers::escapeHtml($exception->getFile() . ':' . $exception->getLine())) ?> -->
<!-- in <?= Helpers::escapeHtml($exception->getFile() . ':' . $exception->getLine()) ?> -->
<?php if (count($chain) > 1): ?>
<!--<?php foreach (array_slice($chain, 1) as $ex) {
echo str_replace('--', '- ', Helpers::escapeHtml("\n\tcaused by " . get_debug_type($ex) . ': ' . $ex->getMessage() . ($ex->getCode() ? ' #' . $ex->getCode() : '')));
echo Helpers::escapeHtml("\n\tcaused by " . get_debug_type($ex) . ': ' . $ex->getMessage() . ($ex->getCode() ? ' #' . $ex->getCode() : ''));
} ?> -->
<?php endif ?>

Expand Down

0 comments on commit 40832ea

Please sign in to comment.