💾 Archived View for rawtext.club › ~sloum › geminilist › 004792.gmi captured on 2023-11-14 at 10:32:24. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
John Cowan cowan at ccil.org
Fri Jan 8 22:29:26 GMT 2021
- - - - - - - - - - - - - - - - - - -
On Fri, Jan 8, 2021 at 1:27 AM Sean Conner <sean at conman.org> wrote:
You are writing a client, and you come across this link:
=
%2E%2E/%52%3A%20%41%2F%42%20%31%25%20%40%20%24%33%3B%76%3D%31
If we unescape all of the RFC 2396 unreserved characters, we get"../R%3A%20A%2FB%201%25%20%40%20%243;%3Bv%3D1" (my reference to RFC 2616was erroneous). RFC 3986 makes a lot of concessions to WHATWG, andrequires the %2E%2E to be left alone, which changes resolution. IMO Geminishould stick with 2396 on this and a number of other points.
This is a relative URI, so this needs to be resolved against the base URI,
and for this question, the base URI is
gemini://example.com/%66%6F%6F/%62%61%72%3B%33/
RFC 2396 doesn't actually allow an unescaped trailing slash in thepathname, although RFC 3986 does. If that is removed, then there there areno escaped reserved characters, so this is equivalent to "gemini://example.com/foo/bar%3B3/". Normal URI resolution then gives us "gemini://example.com/foo/R%3A%20A%2FB%201%25%20%40%20%243;%3Bv%3D1", which is whatshould be sent to the server. Exactly how, if at all, the last componentof the path is translated into a file on the filesystem is completely up tothe server.
That's my best shot.
John Cowan http://vrici.lojban.org/~cowan cowan at ccil.orgEvolutionary psychology is the theory that men are nothing but horn-dogs,and that women only want them for their money. --Susan McCarthy (adapted)-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210108/4d401344/attachment.htm>