Software /
code /
prosody
Diff
spec/util_stanza_spec.lua @ 11205:9d1e21c23784 0.11
util.stanza: Reject ASCII control characters (fixes #1606)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Nov 2020 16:00:41 +0100 |
parent | 9673:e7e75b091c96 |
child | 11206:f051394762ff |
line wrap: on
line diff
--- a/spec/util_stanza_spec.lua Fri Nov 06 13:49:40 2020 +0100 +++ b/spec/util_stanza_spec.lua Wed Nov 11 16:00:41 2020 +0100 @@ -200,6 +200,7 @@ ["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