Skip to content

Commit

Permalink
Merge pull request #1644 from jackstine/route-validation-RFC-3986
Browse files Browse the repository at this point in the history
update regex to comply with RFC-3986
  • Loading branch information
k8s-ci-robot authored and shaneutt committed Feb 7, 2023
1 parent be595a2 commit abec518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/v1beta1/validation/httproute.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
invalidPathSuffixes = []string{"/..", "/."}

// All valid path characters per RFC-3986
validPathCharacters = "^[A-Za-z0-9\\/\\-._~%!$&'()*+,;=:]+$"
validPathCharacters = "^(?:[A-Za-z0-9\\/\\-._~!$&'()*+,;=:@]|[%][0-9a-fA-F]{2})+$"
)

// ValidateHTTPRoute validates HTTPRoute according to the Gateway API specification.
Expand Down

0 comments on commit abec518

Please sign in to comment.