Skip to content

Commit 3631c0d

Browse files
committed
fix: add JS escaping in sync output
1 parent 6008325 commit 3631c0d

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
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Fixed
1717
- Instance wide settings are placed in proper global (#444)
1818
- Avoid delay/errors in loading interop JS when there is a URL prefix (e.g., instance name in multi-instance webserver configuration)
19+
- Added proper JS escaping in sync output
1920

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

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)