changeset 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 8138a90a674a
children 207de712d79d
files flys-client/src/main/java/de/intevation/flys/client/server/GGInAFilter.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/GGInAFilter.java	Tue Oct 23 15:46:31 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/GGInAFilter.java	Tue Oct 23 14:32:48 2012 +0200
@@ -103,7 +103,8 @@
 
         String uri = path + "/" + this.redirecturl;
 
-        if (requesturi.equals(uri)) {
+        /* Redirect if uri is root or redirecturl */
+        if (requesturi.equals(uri) || requesturi.equals(path + "/")) {
             redirect = true;
         }
 

http://dive4elements.wald.intevation.org