diff options
author | Kim Alvefur <zash@zash.se> | 2020-11-11 16:00:41 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-11-11 16:00:41 +0100 |
commit | 8328e6681e7a999c59be05c9e08158a0cf9f95d0 (patch) | |
tree | e750b29cd09996fd6d557a93df15a226e465e6ba /spec/util_stanza_spec.lua | |
parent | 63f44f3640ba88bec4b910b27a1e0801cb0c0fcf (diff) | |
download | prosody-8328e6681e7a999c59be05c9e08158a0cf9f95d0.tar.gz prosody-8328e6681e7a999c59be05c9e08158a0cf9f95d0.zip |
util.stanza: Reject ASCII control characters (fixes #1606)
Diffstat (limited to 'spec/util_stanza_spec.lua')
-rw-r--r-- | spec/util_stanza_spec.lua | 1 |
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 |