Do not translate ?' to
%09' for GOPHER
#2910
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have tried to dig in the lib/gopher.c history but unfortunately
apart the comment I was not able to find other rationales regarding
the
?
->%09
translation. AFAIK RFC 1436 predates URIs but RFC4266 - that standardize gopher:// URIs does not contain any note
regarding a possible
?
->%09
translation and also in "Section2.1 Gopher URL Syntax" for the search types it is documented to
just use
%09
to separate<selector>
and<search>
fields.At least geomyidae, PyGopherd and bucktooth supports CGI where the
?
character is used and it is pretty common to find that in thecurrent gopherspace. Translating
?
to%09
leads to surprisingresults in these cases.
Thank you!
EDIT: Adjusted formatting (NFC)