util.stanza: Reject ASCII control characters (fixes #1606)

This commit is contained in:
Kim Alvefur 2020-11-11 16:00:41 +01:00
parent 63f44f3640
commit 8328e6681e
2 changed files with 10 additions and 1 deletions

View file

@ -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