mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
fix exclusion of repository protocols
This commit is contained in:
@@ -30,10 +30,10 @@ public class WebResourceServlet extends HttpServlet {
|
|||||||
/**
|
/**
|
||||||
* exclude api requests and the old frontend servlets.
|
* exclude api requests and the old frontend servlets.
|
||||||
*
|
*
|
||||||
* TODO remove old frontend servlets
|
* TODO remove old protocol servlets
|
||||||
*/
|
*/
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static final String PATTERN = "/(?!api/).*";
|
static final String PATTERN = "/(?!api/|git/|hg/|svn/).*";
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);
|
private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user