25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Workaround for Psi's wrong Type in form submission

This commit is contained in:
Badlop 2010-10-25 18:58:31 +02:00
parent b0ae3d14aa
commit 633b467a22

View File

@ -60,6 +60,8 @@ parse_xdata_submit(#xmlel{attrs = Attrs, children = Els}) ->
case exmpp_xml:get_attribute_from_list_as_list(Attrs, 'type', "") of case exmpp_xml:get_attribute_from_list_as_list(Attrs, 'type', "") of
"submit" -> "submit" ->
lists:reverse(parse_xdata_fields(Els, [])); lists:reverse(parse_xdata_fields(Els, []));
"form" -> %% This is a workaround to accept Psi's wrong forms
lists:reverse(parse_xdata_fields(Els, []));
_ -> _ ->
invalid invalid
end. end.