aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-14 13:41:20 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-14 13:41:20 +0200
commite73a6525c7a46cf0345d2e486404fb0b7bad66b0 (patch)
tree493bb3334fadb8505c90bd6893843ed3e2895bf1 /src/eu/siacs/conversations
parent510d8a2ae35ffe541ffd75b931e7d2e0e5e6b211 (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.java2
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 0de15092..d9839572 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();
}
}