diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-11 18:11:58 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-11 18:11:58 +0200 |
commit | d28cc096abf6aad4c12e3a90f30edf4c5c6fed1f (patch) | |
tree | 508f164ea03ebba3c092a7f761dcca0f0a6fa645 /src/ws | |
parent | 9673ea6bec1dd52697e0c68b07bd8604f6689dd6 (diff) |
Add escaping/de-escaping to attribute names and values.
Diffstat (limited to 'src/ws')
-rw-r--r-- | src/ws/proto.js | 6 |
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) |