Skip to content

Commit da5326a

Browse files
committed
bug symfony#25552 [WebProfilerBundle] Let fetch() cast URL to string (ro0NL)
This PR was merged into the 3.3 branch. Discussion ---------- [WebProfilerBundle] Let fetch() cast URL to string | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#25538 | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Taken from the fetch polyfill at https://github.com/github/fetch/blob/master/fetch.js#L325 Commits ------- 1a75e85 [WebProfilerBundle] Let fetch() cast URL to string
2 parents e273d81 + 1a75e85 commit da5326a

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)