Fix problem when GitBucket is working on non root context.

This commit is contained in:
takezoe
2013-07-04 12:50:10 +09:00
parent cb2de890ea
commit c3e668d200
2 changed files with 4 additions and 4 deletions

View File

@@ -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$", "")