25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Ignore any extra elements in voice approvement form submission

This commit is contained in:
Maxim Ignatenko 2011-07-31 22:48:56 +03:00
parent 6708914e99
commit 6848d3affe

View File

@ -3852,9 +3852,13 @@ check_voice_approvement_fields({xmlelement, "field", Attrs, Els}, Acc) ->
true; true;
"1" -> "1" ->
true true
end end;
_ ->
true % ignore unknown fields
end end
end. end;
check_voice_approvement_fields({xmlelement, _, _, _}, _) ->
true.
extract_jid_from_voice_approvement(Els) -> extract_jid_from_voice_approvement(Els) ->
try try