-
Notifications
You must be signed in to change notification settings - Fork 974
Add ampersand to URIPATH #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then say 'jenkins, test it'. |
|
please jenkins, test this. |
|
@elyscape thanks a lot for your contribution, are you so nice to extend the current test with a "check" for this improvement? this would be required before we can move forward. Let me know if you have problems with it, I'm open to provide help for sure! |
|
@purbon Updated. Sorry for the delay. |
This allows for validating that a pattern will fail to match an entire string, even if it would match partially.
RFC1738 specifies that URL paths can legally contain ampersands:
; HTTP
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
hpath = hsegment *[ "/" hsegment ]
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
search = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
Accordingly, HAProxy (and potentially other applications) will not
escape them in log files.
|
Updated again with some tests for invalid matches. |
|
LGTM |
RFC1738 specifies that URL paths can legally contain ampersands:
; HTTP
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
hpath = hsegment *[ "/" hsegment ]
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
search = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
Accordingly, HAProxy (and potentially other applications) will not
escape them in log files.
Fixes #114
RFC1738 specifies that URL paths can legally contain ampersands:
Accordingly, HAProxy (and potentially other applications) will not escape them in log files.
Fixes #54.