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 | 54da54d9ed2a80438cb363dd4fb7ec60dd642b08 (patch) | |
tree | e750b29cd09996fd6d557a93df15a226e465e6ba /spec | |
parent | 6765345a3de27eeef503c18af6f5a6651cc72adc (diff) | |
download | prosody-54da54d9ed2a80438cb363dd4fb7ec60dd642b08.tar.gz prosody-54da54d9ed2a80438cb363dd4fb7ec60dd642b08.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 |