Skip to content

Commit 0bd96de

Browse files
committed
fix: add JS escaping in sync output
1 parent 23c2dc9 commit 0bd96de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Instance wide settings are placed in proper global (#444)
1818
- Added support to switch branch in basic mode from menu (#451)
1919
- Avoid delay/errors in loading interop JS when there is a URL prefix (e.g., instance name in multi-instance webserver configuration)
20+
- Added proper JS escaping in sync output
2021

2122
## [2.4.1] - 2024-08-02
2223

csp/sync.csp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146

147147
&js<
148148
var outputContainer = document.getElementById('outputBox');
149-
var lineText = "#(escapedLine)#";
149+
var lineText = "#(..QuoteJS(escapedLine))#";
150150
var lineTextNode = document.createTextNode(lineText);
151151
outputContainer.innerHTML += lineText + "<br>";
152152
>

0 commit comments

Comments
 (0)