aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-06-16 17:45:46 +0000
committerBadlop <badlop@process-one.net>2009-06-16 17:45:46 +0000
commit4dac8f437f0f2aa04fa2caf0df30f1308e7c8cfc (patch)
treee7879d1108c8c8db1d7f6ecccba90ea1b38702fd /src
parentFixes for pausing sessions; did not parse 'pause' attribute to int (thanks to... (diff)
Forgot keyword 'catch' when doing list_to_float on bosh version attribute for initial request (thanks to Stefan Strigler)
SVN Revision: 2225
Diffstat (limited to 'src')
-rw-r--r--src/web/ejabberd_http_bind.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl
index b092affa4..094e92793 100644
--- a/src/web/ejabberd_http_bind.erl
+++ b/src/web/ejabberd_http_bind.erl
@@ -4,12 +4,12 @@
%%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as
%%% HTTP Binding)
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
-%%% Id : $Id: ejabberd_http_bind.erl 282 2007-08-16 14:53:04Z sstrigler $
+%%% Id : $Id: ejabberd_http_bind.erl 349 2007-08-30 13:39:57Z sstrigler $
%%%----------------------------------------------------------------------
-module(ejabberd_http_bind).
-author('steve@zeank.in-berlin.de').
--vsn('$Rev: 282 $').
+-vsn('$Rev: 349 $').
-behaviour(gen_fsm).
@@ -160,7 +160,8 @@ process_request(Data) ->
end
end,
Version =
- case list_to_float(xml:get_attr_s("ver", Attrs)) of
+ case catch list_to_float(
+ xml:get_attr_s("ver", Attrs)) of
{'EXIT', _} -> 0.0;
V -> V
end,