mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-18 21:21:41 +00:00
Make PAGES_INSECURE bypass [limit].allowed-repository-url-prefixes.
This is the intended behavior but it was accidentally broken
in commit 2c109a5e1e.
This commit is contained in:
@@ -838,6 +838,11 @@ func authorizeDNSChallengeOrForgeWithToken(r *http.Request) (*Authorization, err
|
||||
}
|
||||
|
||||
func AuthorizeUpdateFromArchive(r *http.Request) (*Authorization, error) {
|
||||
auth := authorizeInsecure(r)
|
||||
if auth != nil {
|
||||
return auth, nil
|
||||
}
|
||||
|
||||
auth, err := authorizeDNSChallengeOrForgeWithToken(r)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user