Skip to content

Commit

Permalink
Missing anchors in regular expression. (#11718)
Browse files Browse the repository at this point in the history
Co-authored-by: André Storfjord Kristiansen <33384479+dev-bio@users.noreply.github.com>
  • Loading branch information
k8s-infra-cherrypick-robot and dev-bio authored Aug 2, 2024
1 parent 2d6c330 commit a0ca791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/annotations/authtls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
)

var (
authVerifyClientRegex = regexp.MustCompile(`on|off|optional|optional_no_ca`)
authVerifyClientRegex = regexp.MustCompile(`^(on|off|optional|optional_no_ca)$`)
redirectRegex = regexp.MustCompile(`^((https?://)?[A-Za-z0-9\-.]*(:\d+)?/[A-Za-z0-9\-.]*)?$`)
)

Expand Down

0 comments on commit a0ca791

Please sign in to comment.