You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2018/05/08 12:48:52 UTC
[myfaces] 04/04: fix init to param
This is an automated email from the ASF dual-hosted git repository.
deki pushed a commit to branch 1_1_8
in repository https://gitbox.apache.org/repos/asf/myfaces.git
commit 43aaecd98b9bf686d9cd55ee37e5fd9485ea0acc
Author: Leonardo Uribe <lu...@apache.org>
AuthorDate: Mon Jun 7 03:17:00 2010 +0000
fix init to param
---
.../org/apache/myfaces/webapp/StartupServletContextListener.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java b/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
index 6453ab5..ede8c53 100755
--- a/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
+++ b/impl/src/main/java/org/apache/myfaces/webapp/StartupServletContextListener.java
@@ -112,9 +112,11 @@ public class StartupServletContextListener
}
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);
+ }
+
}
--
To stop receiving notification emails like this one, please contact
deki@apache.org.