Skip to content

Commit 0e8edb4

Browse files
authored
fix(router): support rendering development exceptions with html entities (#1854)
1 parent 38128aa commit 0e8edb4

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

packages/router/src/Exceptions/DevelopmentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(Throwable $throwable, Response $response, Request $r
4646
'script' => Filesystem\read_file(__DIR__ . '/local/dist/main.js'),
4747
'css' => Filesystem\read_file(__DIR__ . '/local/dist/style.css'),
4848
'hydration' => map([
49-
'stacktrace' => $stacktrace,
49+
'stacktrace' => json_encode($stacktrace),
5050
'context' => $throwable instanceof ProvidesContext ? $throwable->context() : [],
5151
'rootPath' => root_path(),
5252
'request' => [

0 commit comments

Comments
 (0)