Skip to content
Browse files

fix init to param

git-svn-id: https://svn.apache.org/repos/asf/myfaces/core/branches/1_1_8@952075 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent ed7b297 commit 83982121b67000fcda0f26a2920bffd597454980 Leonardo Uribe committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
View
6 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 8398212

Please sign in to comment.
Something went wrong with that request. Please try again.