James Moger
2015-05-21 d5548efca76bf08c73535befc9daddca9b223d39
src/main/java/com/gitblit/guice/WebModule.java
@@ -53,11 +53,6 @@
public class WebModule extends ServletModule {
   final static String ALL = "/*";
   private boolean isGO;
   public WebModule(boolean isGO) {
      this.isGO=isGO;
   }
   @Override
   protected void configureServlets() {
@@ -75,8 +70,7 @@
      serve(Constants.PT_PATH).with(PtServlet.class);
      serve("/robots.txt").with(RobotsTxtServlet.class);
      serve("/logo.png").with(LogoServlet.class);
      if(isGO)
      {
         /* Prevent accidental access to 'resources' such as GitBlit java classes
          *
          * In the GO setup the JAR containing the application and the WAR injected
@@ -87,8 +81,7 @@
          * The below servlet mappings prevent that behavior
          */
         serve(fuzzy("/com/")).with(AccessDeniedServlet.class);
         serve(fuzzy("/org/")).with(AccessDeniedServlet.class);
      }
      // global filters
      filter(ALL).through(ProxyFilter.class);
      filter(ALL).through(EnforceAuthenticationFilter.class);