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 | 7a1c57ac6b8d4c3631265c1ea7a4995a849d54f2 (patch) | |
tree | e750b29cd09996fd6d557a93df15a226e465e6ba /spec/util_stanza_spec.lua | |
parent | bb705173155a0e6fce0f8cfefd46119b277b8459 (diff) | |
download | prosody-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.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 |