Make sure x:data form possesses 'type' attribute

This commit is contained in:
Evgeniy Khramtsov 2014-09-03 21:26:12 +04:00
parent fda73c3d16
commit ac2ba399a9
1 changed files with 2 additions and 1 deletions

View File

@ -914,7 +914,8 @@ iq_get_register_info(ServerHost, Host, From, Lang) ->
<<"You need a client that supports x:data "
"to register the nickname">>)}]},
#xmlel{name = <<"x">>,
attrs = [{<<"xmlns">>, ?NS_XDATA}],
attrs = [{<<"xmlns">>, ?NS_XDATA},
{<<"type">>, <<"form">>}],
children =
[#xmlel{name = <<"title">>, attrs = [],
children =