aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2026-01-09 03:34:44 -0800
committerGitHub Enterprise <[email protected]>2026-01-09 12:34:44 +0100
commit3d5ae4371b8834056c3207cda79acc8c00097053 (patch)
tree9b9b34d0a0973616115ef7e38e369e6b044cc88f /src
parentread build state files into memory instead of relying on memory mapping (#702) (diff)
downloadzen-3d5ae4371b8834056c3207cda79acc8c00097053.tar.xz
zen-3d5ae4371b8834056c3207cda79acc8c00097053.zip
Avoid rendering user text input as HTML (#700)
* Avoid rendering user text input as HTML
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/frontend/html.zipbin163145 -> 163147 bytes
-rw-r--r--src/zenserver/frontend/html/util/component.js2
2 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/frontend/html.zip b/src/zenserver/frontend/html.zip
index f9fc8a8ef..36f08a05d 100644
--- a/src/zenserver/frontend/html.zip
+++ b/src/zenserver/frontend/html.zip
Binary files differ
diff --git a/src/zenserver/frontend/html/util/component.js b/src/zenserver/frontend/html/util/component.js
index 205aa038e..3c4780d77 100644
--- a/src/zenserver/frontend/html/util/component.js
+++ b/src/zenserver/frontend/html/util/component.js
@@ -72,7 +72,7 @@ class ComponentDom extends ComponentBase
text(value)
{
value = (value == undefined) ? "undefined" : value.toString();
- this._element.innerHTML = (value != "") ? value : "";
+ this._element.textContent = (value != "") ? value : "";
return this;
}