mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 22:45:51 +01:00
Fix plugin path problem
This commit is contained in:
@@ -21,7 +21,7 @@ class PluginActionInvokeFilter extends Filter with SystemSettingsService with Re
|
|||||||
(req, res) match {
|
(req, res) match {
|
||||||
case (request: HttpServletRequest, response: HttpServletResponse) => {
|
case (request: HttpServletRequest, response: HttpServletResponse) => {
|
||||||
Database(req.getServletContext) withTransaction { implicit session =>
|
Database(req.getServletContext) withTransaction { implicit session =>
|
||||||
val path = req.asInstanceOf[HttpServletRequest].getRequestURI
|
val path = request.getRequestURI.substring(request.getServletContext.getContextPath.length)
|
||||||
if(!processGlobalAction(path, request, response) && !processRepositoryAction(path, request, response)){
|
if(!processGlobalAction(path, request, response) && !processRepositoryAction(path, request, response)){
|
||||||
chain.doFilter(req, res)
|
chain.doFilter(req, res)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user