From 6316b0f097410885180dbd43093595087ca03d1c Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 19 Aug 2015 21:29:27 +0200 Subject: [PATCH] mod_mam_mnesia: Also strip CDATA from element --- mod_mam_mnesia/src/mod_mam_mnesia.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_mam_mnesia/src/mod_mam_mnesia.erl b/mod_mam_mnesia/src/mod_mam_mnesia.erl index a3068f7..9016520 100644 --- a/mod_mam_mnesia/src/mod_mam_mnesia.erl +++ b/mod_mam_mnesia/src/mod_mam_mnesia.erl @@ -725,7 +725,7 @@ parse_request(Host, Query) -> parse_form(#xmlel{} = Query) -> case xml:get_subtag_with_xmlns(Query, <<"x">>, ?NS_XDATA) of #xmlel{children = Fields} -> - parse_form(Fields); + parse_form(xml:remove_cdata(Fields)); false -> #mam_filter{} end;