25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/jlib.erl: Use http_base_64:decode if available

SVN Revision: 883
This commit is contained in:
Alexey Shchepin 2007-08-21 22:28:41 +00:00
parent 3f92fb1acc
commit 106cf7f963
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-08-22 Alexey Shchepin <alexey@process-one.net>
* src/jlib.erl: Use http_base_64:decode if available
2007-08-20 Alexey Shchepin <alexey@process-one.net> 2007-08-20 Alexey Shchepin <alexey@process-one.net>
* src/mod_roster.erl: Don't send roster push when unsubscribing in * src/mod_roster.erl: Don't send roster push when unsubscribing in

View File

@ -566,6 +566,14 @@ check_list(List) ->
% %
decode_base64(S) -> decode_base64(S) ->
case catch http_base_64:decode(S) of
{'EXIT', _Err} ->
decode_base64_old(S);
Res ->
Res
end.
decode_base64_old(S) ->
decode1_base64([C || C <- S, decode1_base64([C || C <- S,
C /= $ , C /= $ ,
C /= $\t, C /= $\t,