mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
src/ejabberd_auth.erl: Fix: for legacy authentication, the Digest parameters could be 'undefined'.
src/mod_muc/mod_muc_room.erl: Typo. src/ejabberd_c2s.erl: Remove comment for an already done TODO. SVN Revision: 1885
This commit is contained in:
parent
e977d099e2
commit
ea62092d6e
@ -1,3 +1,12 @@
|
||||
2009-02-18 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||
|
||||
* src/ejabberd_auth.erl: Fix: for legacy authentication, the Digest
|
||||
parameters could be 'undefined'.
|
||||
|
||||
* src/mod_muc/mod_muc_room.erl: Typo.
|
||||
|
||||
* src/ejabberd_c2s.erl: Remove comment for an already done TODO.
|
||||
|
||||
2009-02-13 Christophe Romain <christophe.romain@process-one.net>
|
||||
|
||||
* src/ejabberd_auth.erl: prevent from calling
|
||||
|
@ -145,7 +145,7 @@ check_password_with_authmodule(User, Server, Password)
|
||||
|
||||
check_password_with_authmodule(User, Server, Password, StreamID, Digest)
|
||||
when is_list(User), is_list(Server), is_list(Password),
|
||||
is_list(StreamID), is_list(Digest) ->
|
||||
is_list(StreamID), (is_list(Digest) orelse Digest == 'undefined')->
|
||||
Res = lists:dropwhile(
|
||||
fun(M) ->
|
||||
not apply(M, check_password,
|
||||
|
@ -826,7 +826,6 @@ session_established2(El, StateData) ->
|
||||
User = StateData#state.user,
|
||||
Server = StateData#state.server,
|
||||
|
||||
% TODO: check 'from' attribute in stanza
|
||||
FromJID = StateData#state.jid,
|
||||
To = exmpp_stanza:get_recipient(El),
|
||||
ToJID = case To of
|
||||
|
@ -1323,7 +1323,7 @@ prepare_room_queue(StateData) ->
|
||||
{{value, {message, From}}, _RoomQueue} ->
|
||||
Activity = get_user_activity(From, StateData),
|
||||
Packet = Activity#activity.message,
|
||||
Size = erlang:iolist_size(exmpp_xml:documenent_to_iolist(Packet)),
|
||||
Size = erlang:iolist_size(exmpp_xml:document_to_iolist(Packet)),
|
||||
{RoomShaper, RoomShaperInterval} =
|
||||
shaper:update(StateData#state.room_shaper, Size),
|
||||
erlang:send_after(
|
||||
|
Loading…
Reference in New Issue
Block a user