mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 16:05:49 +01:00
Merge pull request #690 from noc06140728/fix-basic-auth
Allow a password that contains colons
This commit is contained in:
@@ -40,7 +40,7 @@ class BasicAuthenticationFilter extends Filter with RepositoryService with Accou
|
||||
} else {
|
||||
request.getHeader("Authorization") match {
|
||||
case null => requireAuth(response)
|
||||
case auth => decodeAuthHeader(auth).split(":") match {
|
||||
case auth => decodeAuthHeader(auth).split(":", 2) match {
|
||||
case Array(username, password) => {
|
||||
authenticate(settings, username, password) match {
|
||||
case Some(account) if (isUpdating || repository.repository.isPrivate) => {
|
||||
|
||||
Reference in New Issue
Block a user