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 | 8a0198f4be5976852e12b6e622882ef3854cbf1f (patch) | |
tree | e750b29cd09996fd6d557a93df15a226e465e6ba /spec | |
parent | 1810ddbc6d65799d65ecefd99e68658675d8cbef (diff) | |
download | prosody-8a0198f4be5976852e12b6e622882ef3854cbf1f.tar.gz prosody-8a0198f4be5976852e12b6e622882ef3854cbf1f.zip |
util.stanza: Reject ASCII control characters (fixes #1606)
Diffstat (limited to 'spec')
-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 |