Auth TLS: Improve redirect RegEx. (#12249)
This commit is contained in:
parent
af095e4216
commit
ca81d5bcdd
1 changed files with 1 additions and 1 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue