Auth TLS: Improve redirect RegEx. (#12249)

This commit is contained in:
James Strong 2024-11-06 19:19:29 -05:00 committed by GitHub
parent af095e4216
commit ca81d5bcdd
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{