mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Store version as float (thanks to Stefan Strigler)
SVN Revision: 2219
This commit is contained in:
parent
e7417c2f8b
commit
8a89b1737f
@ -3,12 +3,12 @@
|
||||
%%% Author : Stefan Strigler <steve@zeank.in-berlin.de>
|
||||
%%% Purpose : HTTP Binding support (JEP-0124)
|
||||
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
|
||||
%%% Id : $Id: ejabberd_http_bind.erl 274 2007-08-15 13:54:05Z sstrigler $
|
||||
%%% Id : $Id: ejabberd_http_bind.erl 275 2007-08-15 13:57:51Z sstrigler $
|
||||
%%%----------------------------------------------------------------------
|
||||
|
||||
-module(ejabberd_http_bind).
|
||||
-author('steve@zeank.in-berlin.de').
|
||||
-vsn('$Rev: 274 $').
|
||||
-vsn('$Rev: 275 $').
|
||||
|
||||
-behaviour(gen_fsm).
|
||||
|
||||
@ -154,7 +154,11 @@ process_request(Data) ->
|
||||
CHold
|
||||
end
|
||||
end,
|
||||
Version = xml:get_attr_s("ver", Attrs),
|
||||
Version =
|
||||
case list_to_float(xml:get_attr_s("ver", Attrs)) of
|
||||
{'EXIT', _} -> 0.0;
|
||||
V -> V
|
||||
end,
|
||||
XmppVersion = xml:get_attr_s("xmpp:version", Attrs),
|
||||
mnesia:transaction(
|
||||
fun() ->
|
||||
|
Loading…
Reference in New Issue
Block a user