aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_stanza_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-11-11 16:00:41 +0100
committerKim Alvefur <zash@zash.se>2020-11-11 16:00:41 +0100
commit7a1c57ac6b8d4c3631265c1ea7a4995a849d54f2 (patch)
treee750b29cd09996fd6d557a93df15a226e465e6ba /spec/util_stanza_spec.lua
parentbb705173155a0e6fce0f8cfefd46119b277b8459 (diff)
downloadprosody-7a1c57ac6b8d4c3631265c1ea7a4995a849d54f2.tar.gz
prosody-7a1c57ac6b8d4c3631265c1ea7a4995a849d54f2.zip
util.stanza: Reject ASCII control characters (fixes #1606)
Diffstat (limited to 'spec/util_stanza_spec.lua')
-rw-r--r--spec/util_stanza_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/util_stanza_spec.lua b/spec/util_stanza_spec.lua
index 6fbae41a..da29f890 100644
--- a/spec/util_stanza_spec.lua
+++ b/spec/util_stanza_spec.lua
@@ -200,6 +200,7 @@ describe("util.stanza", function()
["number"] = 1234, ["table"] = {};
["utf8"] = string.char(0xF4, 0x90, 0x80, 0x80);
["nil"] = "nil"; ["boolean"] = true;
+ ["control characters"] = "\0\1\2\3";
};
for value_type, value in pairs(invalid_names) do