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
master
baka 2017-08-30 11:36:03 +00:00
parent 34a0918c92
commit cd911e44ea
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ final class Store implements KeyStorage {
throw new IllegalStateException throw new IllegalStateException
("the store is null"); ("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 throw new IllegalArgumentException
("wrong length. expected=" + SecurityConfig.SECRET_KEY_BYTES + ("wrong length. expected=" + SecurityConfig.SECRET_KEY_BYTES +
", but got " + m_secret.length); ", but got " + m_secret.length);