aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-08 23:56:27 +0100
committerKim Alvefur <zash@zash.se>2021-01-08 23:56:27 +0100
commit2f4d12286f17da4e0a1d6916e9c6addd5f61f9f5 (patch)
treeae3423f96ff891efa62da56d3223f2824ccffd2c /util/stanza.lua
parentcb1282bfd0959b52c0725e2249c07c9319b58da0 (diff)
parent365e5b0cb481315525d4f2bfbf478340b8dc08d8 (diff)
downloadprosody-2f4d12286f17da4e0a1d6916e9c6addd5f61f9f5.tar.gz
prosody-2f4d12286f17da4e0a1d6916e9c6addd5f61f9f5.zip
Merge 0.11->trunk
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 85f047f8..3d4e9e5a 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -66,9 +66,9 @@ end
local function check_text(text, text_type)
if type(text) ~= "string" then
error("invalid "..text_type.." value: expected string, got "..type(text));
- elseif not valid_xml_cdata(text) then
+ elseif not valid_xml_cdata(text, false) then
error("invalid "..text_type.." value: contains control characters");
- elseif not valid_utf8(text, false) then
+ elseif not valid_utf8(text) then
error("invalid "..text_type.." value: contains invalid utf8");
end
end