From 633b467a22d51456635906a3e1fd6f0aa28e486e Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 25 Oct 2010 18:58:31 +0200 Subject: [PATCH] Workaround for Psi's wrong Type in form submission --- src/jlib.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jlib.erl b/src/jlib.erl index fad376684..c3a3433aa 100644 --- a/src/jlib.erl +++ b/src/jlib.erl @@ -60,6 +60,8 @@ parse_xdata_submit(#xmlel{attrs = Attrs, children = Els}) -> case exmpp_xml:get_attribute_from_list_as_list(Attrs, 'type', "") of "submit" -> lists:reverse(parse_xdata_fields(Els, [])); + "form" -> %% This is a workaround to accept Psi's wrong forms + lists:reverse(parse_xdata_fields(Els, [])); _ -> invalid end.