Fixed / path
authorJanis Streib <janis@dogcraft.de>
Fri, 27 Jun 2014 10:19:09 +0000 (12:19 +0200)
committerJanis Streib <janis@dogcraft.de>
Fri, 27 Jun 2014 10:19:09 +0000 (12:19 +0200)
src/org/cacert/gigi/Gigi.java

index 3fa5d47..a96396d 100644 (file)
@@ -115,7 +115,7 @@ public class Gigi extends HttpServlet {
 
        }
        private Page getPage(String pathInfo) {
-               if (pathInfo.endsWith("/")) {
+               if (pathInfo.endsWith("/") && !pathInfo.equals("/")) {
                        pathInfo = pathInfo.substring(0, pathInfo.length() - 1);
                }
                Page page = pages.get(pathInfo);