diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-14 13:41:20 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-14 13:41:20 +0200 |
commit | e73a6525c7a46cf0345d2e486404fb0b7bad66b0 (patch) | |
tree | 493bb3334fadb8505c90bd6893843ed3e2895bf1 /src/eu/siacs/conversations | |
parent | 510d8a2ae35ffe541ffd75b931e7d2e0e5e6b211 (diff) |
fixed bug in caps hash generation. thanks Asterix of the Gajim project
Diffstat (limited to 'src/eu/siacs/conversations')
-rw-r--r-- | src/eu/siacs/conversations/generator/AbstractGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/generator/AbstractGenerator.java b/src/eu/siacs/conversations/generator/AbstractGenerator.java index 0de150920..d98395725 100644 --- a/src/eu/siacs/conversations/generator/AbstractGenerator.java +++ b/src/eu/siacs/conversations/generator/AbstractGenerator.java @@ -46,6 +46,6 @@ public abstract class AbstractGenerator { s.append(feature+"<"); } byte[] sha1 = md.digest(s.toString().getBytes()); - return new String(Base64.encode(sha1, Base64.DEFAULT)); + return new String(Base64.encode(sha1, Base64.DEFAULT)).trim(); } } |