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:
Catherine
2026-05-14 13:14:24 +00:00
parent 55f87083e5
commit f1e773b749

View File

@@ -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