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:
parent
3f92fb1acc
commit
106cf7f963
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user