-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support @include/include directive for spaces included path. Fix #2485 #2780
Support @include/include directive for spaces included path. Fix #2485 #2780
Conversation
Umm..., tests which are affected this changes are failed... |
Based on @repeatedly's patch: #2485 (comment) Signed-off-by: Hiroshi Hatake <[email protected]>
0c5f6ba
to
74cb033
Compare
Because raw URI.encode_www_form_components methods overescape for passed string in this case. We just need to handle URI with spaces as valid URI. TO acheive this, we just replace spaces with '+' before executing URI.parse. Signed-off-by: Hiroshi Hatake <[email protected]>
74cb033
to
a5fa046
Compare
I used |
Both methods(
|
URI.encode_www_form_components will escape drive schema like as
URI.parse does not handle "C%3A%2F" as a schema. This causes unintentional behavior on this clause: URI.encode has right behavior for this PR but this method is marked as obsoleted: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URI.parse does not handle "C%3A%2F" as a schema.
URI.encode has right behavior for this PR but this method is marked as obsoleted:
https://docs.ruby-lang.org/ja/latest/method/URI/s/encode.html
I see...
OK, then 👍
Signed-off-by: Hiroshi Hatake <[email protected]>
bba1a63
to
cd67858
Compare
I'll merge this PR after finishing CI. |
Based on @repeatedly's patch:
#2485 (comment)
Signed-off-by: Hiroshi Hatake [email protected]
Which issue(s) this PR fixes:
Fixes #2485
What this PR does / why we need it:
Support @include/include directive for spaces included path.
Docs Changes:
Needed?
Release Note:
Same as title.