352050: Fixed infinite redirect loop for /remote.html in testapp

This commit is contained in:
Thomas Becker 2011-09-13 14:22:09 +02:00 committed by Joakim Erdfelt
parent 82f48ada9a
commit 670e8de261
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{