Auth TLS: Add _ to redirect RegEx. (#12325)

This commit is contained in:
Marco Ebert 2024-11-07 21:32:44 +01:00 committed by GitHub
parent ca81d5bcdd
commit 7f0350b4b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ const (
var (
authVerifyClientRegex = regexp.MustCompile(`^(on|off|optional|optional_no_ca)$`)
redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]+(:\d+)?)?(/[A-Za-z0-9\-.]+)*/?$`)
redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]+(:\d+)?)?(/[A-Za-z0-9\-_.]+)*/?$`)
)
var authTLSAnnotations = parser.Annotation{