comparison flys-client/src/main/java/de/intevation/flys/client/server/GGInAFilter.java @ 4228:fcdc0d2fdf8f

Don't send 403 if accessing the root path Redirect to the login page if the root path is requested.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 23 Oct 2012 14:32:48 +0200
parents e10d60d4f35b
children e96f2a6e4c3e
comparison
equal deleted inserted replaced
4227:8138a90a674a 4228:fcdc0d2fdf8f
101 101
102 HttpSession session = sreq.getSession(); 102 HttpSession session = sreq.getSession();
103 103
104 String uri = path + "/" + this.redirecturl; 104 String uri = path + "/" + this.redirecturl;
105 105
106 if (requesturi.equals(uri)) { 106 /* Redirect if uri is root or redirecturl */
107 if (requesturi.equals(uri) || requesturi.equals(path + "/")) {
107 redirect = true; 108 redirect = true;
108 } 109 }
109 110
110 if (sreq.getQueryString() != null) { 111 if (sreq.getQueryString() != null) {
111 uri = uri + "?" + sreq.getQueryString(); 112 uri = uri + "?" + sreq.getQueryString();

http://dive4elements.wald.intevation.org