Author: jann
Date: Fri Oct 12 08:51:33 2007
New Revision: 584193
URL: http://svn.apache.org/viewvc?rev=584193&view=rev
Log:
Prevent redirect loop if a site is ssl protected see also http://issues.apache.org/bugzilla/show_bug.cgi?id=43613
Modified:
lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/cocoon/acting/SslRedirectAction.java
Modified: lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/cocoon/acting/SslRedirectAction.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/cocoon/acting/SslRedirectAction.java?rev=584193&r1=584192&r2=584193&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/cocoon/acting/SslRedirectAction.java (original)
+++ lenya/trunk/src/modules-core/ac/java/src/org/apache/lenya/cms/cocoon/acting/SslRedirectAction.java Fri Oct 12 08:51:33 2007
@@ -74,7 +74,7 @@
PolicyManager policyManager = accessController.getPolicyManager();
Policy policy = policyManager.getPolicy(accessController.getAccreditableManager(),
url);
- if (policy.isSSLProtected()) {
+ if (policy.isSSLProtected() && !request.getScheme().equals("https")) {
Session session = RepositoryUtil.getSession(this.manager, request);
LinkRewriter rewriter = new OutgoingLinkRewriter(this.manager, session, url,
false, true, false);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.