Skip to content

Commit 1a75e85

Browse files
committed
[WebProfilerBundle] Let fetch() cast URL to string
1 parent e273d81 commit 1a75e85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@
250250
mode: arguments[0].mode,
251251
redirect: arguments[0].redirect
252252
};
253+
} else {
254+
url = String(url);
253255
}
254256
if (!url.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {
255257
var method = 'GET';

0 commit comments

Comments
 (0)