James Moger
2011-10-01 10177fb0a59cc9fc61fb78c724f7b0816b69b798
src/com/gitblit/AccessRestrictionFilter.java
@@ -130,14 +130,15 @@
      AccessRestrictionRequest accessRequest = new AccessRestrictionRequest(httpRequest);
      String url = httpRequest.getRequestURI().substring(httpRequest.getServletPath().length());
      String servletUrl = httpRequest.getContextPath() + httpRequest.getServletPath();
      String url = httpRequest.getRequestURI().substring(servletUrl.length());
      String params = httpRequest.getQueryString();
      if (url.length() > 0 && url.charAt(0) == '/') {
         url = url.substring(1);
      }
      String fullUrl = url + (StringUtils.isEmpty(params) ? "" : ("?" + params));
      String repository = extractRepositoryName(url);
      String repository = extractRepositoryName(fullUrl);
      // Determine if the request URL is restricted
      String fullSuffix = fullUrl.substring(repository.length());