From 670e8de26192fd13017a5e390ab29b7207a66eeb Mon Sep 17 00:00:00 2001 From: Thomas Becker Date: Tue, 13 Sep 2011 14:22:09 +0200 Subject: [PATCH] 352050: Fixed infinite redirect loop for /remote.html in testapp --- test-jetty-webapp/src/main/java/com/acme/TestFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-jetty-webapp/src/main/java/com/acme/TestFilter.java b/test-jetty-webapp/src/main/java/com/acme/TestFilter.java index 3712a2c7db4..18758dd276c 100644 --- a/test-jetty-webapp/src/main/java/com/acme/TestFilter.java +++ b/test-jetty-webapp/src/main/java/com/acme/TestFilter.java @@ -73,7 +73,7 @@ public class TestFilter implements Filter String to = request.getServerName(); String path=((HttpServletRequest)request).getServletPath(); - if (!_remote && !_allowed.contains(path) && ( + if (!"/remote.html".equals(path) && !_remote && !_allowed.contains(path) && ( !from.equals("localhost") && !from.startsWith("127.") && from.indexOf(":1")<0 || !to.equals("localhost")&&!to.startsWith("127.0.0.") && to.indexOf(":1")<0)) {