Skip to content

Commit 8ac00a3

Browse files
authored
Fix open redirect in InterdependencyGraph.html (#4353)
1 parent 70f618c commit 8ac00a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/AnalyzeDependencies/InterdependencyGraph.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ <h1>Bot Framework JS Interdependencies</h1>
343343
const params = new URLSearchParams(window.location.search);
344344
const src = params.get("data") || "data.js";
345345
const script = document.createElement("script");
346-
script.src = src;
346+
const url = window.location.href.split('?')[0];
347+
const path = url.substr(0, url.lastIndexOf('/'));
348+
script.src = path.concat('/', src);
347349
script.async = false;
348350
script.addEventListener("load", () => renderGraph(data));
349351
script.addEventListener("error", e => {

0 commit comments

Comments
 (0)