From cd911e44eabbe20eed7be4f34958d379ab871e26 Mon Sep 17 00:00:00 2001 From: baka Date: Wed, 30 Aug 2017 11:36:03 +0000 Subject: [PATCH] Fix for the redirection exception which was, amongst other places, thrown and shown at login, when calling the /cms/content-center page before logging in git-svn-id: https://svn.libreccm.org/ccm/trunk@4962 8810af33-2d31-482b-a856-94f89814c4df --- ccm-core/src/com/arsdigita/kernel/security/Store.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccm-core/src/com/arsdigita/kernel/security/Store.java b/ccm-core/src/com/arsdigita/kernel/security/Store.java index 1cd393b42..2507ec253 100755 --- a/ccm-core/src/com/arsdigita/kernel/security/Store.java +++ b/ccm-core/src/com/arsdigita/kernel/security/Store.java @@ -110,7 +110,7 @@ final class Store implements KeyStorage { throw new IllegalStateException ("the store is null"); } - if ( m_secret.length != SecurityConfig.SECRET_KEY_BYTES ) { + if ( m_secret.length != SecurityConfig.SECRET_KEY_BYTES * 2 - 1 ) { throw new IllegalArgumentException ("wrong length. expected=" + SecurityConfig.SECRET_KEY_BYTES + ", but got " + m_secret.length);