mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 06:55:54 +01:00
Fix authentication for the wiki repository.
This commit is contained in:
@@ -24,8 +24,8 @@ class BasicAuthenticationFilter extends Filter with RepositoryService with Accou
|
||||
val paths = request.getRequestURI.split("/")
|
||||
val repositoryOwner = paths(2)
|
||||
val repositoryName = paths(3).replaceFirst("\\.git$", "")
|
||||
println(request.getRequestURI)
|
||||
getRepository(repositoryOwner, repositoryName, request.getServletContext) match {
|
||||
|
||||
getRepository(repositoryOwner, repositoryName.replaceFirst("\\.wiki", ""), request.getServletContext) match {
|
||||
case Some(repository) => {
|
||||
if(!request.getRequestURI.endsWith("/git-receive-pack") &&
|
||||
repository.repository.repositoryType == RepositoryService.Public){
|
||||
|
||||
Reference in New Issue
Block a user