fix exclusion of repository protocols

This commit is contained in:
Sebastian Sdorra
2018-08-30 12:42:33 +02:00
parent c1123810fc
commit b6c4c3df7e

View File

@@ -30,10 +30,10 @@ public class WebResourceServlet extends HttpServlet {
/**
* exclude api requests and the old frontend servlets.
*
* TODO remove old frontend servlets
* TODO remove old protocol servlets
*/
@VisibleForTesting
static final String PATTERN = "/(?!api/).*";
static final String PATTERN = "/(?!api/|git/|hg/|svn/).*";
private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);