mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-07 16:12:17 +01:00
(refs #1695)Fix plugin controllers mapping
This commit is contained in:
@@ -24,7 +24,7 @@ class PluginControllerFilter extends Filter {
|
||||
val controller = PluginRegistry().getControllers().filter { case (_, path) =>
|
||||
val requestUri = request.asInstanceOf[HttpServletRequest].getRequestURI
|
||||
val start = path.replaceFirst("/\\*$", "/")
|
||||
path.endsWith("/*") && (requestUri + "/").startsWith(start)
|
||||
(requestUri + "/").startsWith(start)
|
||||
}
|
||||
|
||||
val filterChainWrapper = controller.foldLeft(chain){ case (chain, (controller, _)) =>
|
||||
|
||||
Reference in New Issue
Block a user