Permalink
Browse files

fix init to param

  • Loading branch information...
Leonardo Uribe
Leonardo Uribe committed Jun 7, 2010
1 parent 515886b commit 43aaecd98b9bf686d9cd55ee37e5fd9485ea0acc
Showing with 4 additions and 2 deletions.
  1. +4 −2 impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
@@ -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);
+ }
+
}

0 comments on commit 43aaecd

Please sign in to comment.