Software /
code /
prosody
Diff
util/stanza.lua @ 11264:2cdcf55c6dd5
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jan 2021 23:56:27 +0100 |
parent | 11206:f051394762ff |
parent | 11261:be38ae8fdfa5 |
child | 11574:21217f7e82b9 |
line wrap: on
line diff
--- a/util/stanza.lua Fri Jan 08 17:32:06 2021 +0100 +++ b/util/stanza.lua Fri Jan 08 23:56:27 2021 +0100 @@ -66,9 +66,9 @@ 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