We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
../
file
1 parent c040d5f commit 89f9c6cCopy full SHA for 89f9c6c
SwanCustomEnvironments/swancustomenvironments/templates/customenvs.html
@@ -71,7 +71,7 @@
71
let has_failed = false, project_path = '/';
72
73
const urlParams = new URLSearchParams(window.location.search);
74
- const file = `/${urlParams.get('file') || ""}`;
+ const file = `/${urlParams.get('file') || ""}`.replace(/\.\.\//g, '').replace(/\.\.\\/g, '');
75
76
// Scroll to the output-box height
77
outputBox.scrollIntoView({
0 commit comments