summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-06-11 18:11:58 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-06-11 18:11:58 +0200
commitd28cc096abf6aad4c12e3a90f30edf4c5c6fed1f (patch)
tree508f164ea03ebba3c092a7f761dcca0f0a6fa645
parent9673ea6bec1dd52697e0c68b07bd8604f6689dd6 (diff)
Add escaping/de-escaping to attribute names and values.
-rw-r--r--src/ws/proto.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ws/proto.js b/src/ws/proto.js
index 5eadd70..f597503 100644
--- a/src/ws/proto.js
+++ b/src/ws/proto.js
@@ -158,8 +158,8 @@ try
detail: {
subscribeid: subscribeid,
id: id,
- name: msg[3],
- value: msg[4],
+ name: unescape(msg[3]),
+ value: unescape(msg[4]),
},
bubbles: true,
cancelable: true
@@ -236,7 +236,7 @@ function remove(id)
function update(id, name, value)
{
- transmit("update "+id+" "+name+" "+value);
+ transmit("update "+id+" "+escape(name)+" "+escape(value));
}
function move(id, parent, before)