mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 22:45:51 +01:00
Fix problem when GitBucket is working on non root context.
This commit is contained in:
@@ -22,7 +22,7 @@ class BasicAuthenticationFilter extends Filter with RepositoryService with Accou
|
||||
val response = res.asInstanceOf[HttpServletResponse]
|
||||
|
||||
try {
|
||||
val paths = request.getRequestURI.split("/")
|
||||
val paths = request.getRequestURI.substring(request.getContextPath.length).split("/")
|
||||
val repositoryOwner = paths(2)
|
||||
val repositoryName = paths(3).replaceFirst("\\.git$", "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user