Skip to content

Commit

Permalink
fix init to param
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Uribe committed Jun 7, 2010
1 parent 515886b commit 43aaecd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -112,9 +112,11 @@ public static void initFaces(ServletContext servletContext)
}
log.info("ServletContext '" + servletContext.getRealPath("/") + "' initialized.");

if(servletContext.getInitParameter(StateUtils.INIT_SECRET) != null
|| servletContext.getInitParameter(StateUtils.INIT_SECRET.toLowerCase()) != null)
String useEncryption = servletContext.getInitParameter(StateUtils.USE_ENCRYPTION);
if (!"false".equals(useEncryption)){ // the default value is true
StateUtils.initSecret(servletContext);
}

}


Expand Down

0 comments on commit 43aaecd

Please sign in to comment.