From e73a6525c7a46cf0345d2e486404fb0b7bad66b0 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 14 Aug 2014 13:41:20 +0200 Subject: [PATCH] fixed bug in caps hash generation. thanks Asterix of the Gajim project --- src/eu/siacs/conversations/generator/AbstractGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }