mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Workaround for Psi's wrong Type in form submission
This commit is contained in:
parent
b0ae3d14aa
commit
633b467a22
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user