Skip to content

Commit 69e4d8b

Browse files
authored
Merge pull request #1644 from jackstine/route-validation-RFC-3986
update regex to comply with RFC-3986
2 parents e9e04e4 + 12dec58 commit 69e4d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/v1beta1/validation/httproute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
invalidPathSuffixes = []string{"/..", "/."}
4040

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

4545
// ValidateHTTPRoute validates HTTPRoute according to the Gateway API specification.

0 commit comments

Comments
 (0)