-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
pct-encoded reserved character(%2F) was encoded twice #18
Comments
Thanks for the report. |
Related: uri-templates/uritemplate-test#41. |
Copy that. I've also strange that the RFC6570 wasn't any samples about double pct-encode. It sugguest that this library should be followed the RFC3986 Implementations must not |
If you have any time to prepare a PR, or half of a PR, that would be much appreciated. I am spread thin these days, lol. |
PHP version: 8.1.3
Description
As of a community reporting, while the uri was already contains the
pct-encoded
(reserved characters) component, eg:AIO%2FFR
. The{+var}
syntax is explained this one as ofAIO%252FFR
. It is leading to misinterpreting the original percent data octet string.I've also checked the RFC3986 and RFC6570 specifications.
RFC3986
2.4. When to Encode or Decode
was mentioned there:RFC6570
3.2.1. Variable Expansion
was mentioned there:The pct-encoded reserved character(
%2F
) may pass through but it was encoded the char(%
) to%25
. It is mismatched the specs.How to reproduce
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: