Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-10 Thread Maxime Devos
Op 04-10-2023 om 07:29 schreef Vivien Kraus: Le mercredi 04 octobre 2023 à 00:30 +0200, Maxime Devos a écrit :       The best prevention is not allowing redirects at all or only       allowing redirections that keep the hostname intact -- while an       option for much software, it isn't

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Vivien Kraus
Le mercredi 04 octobre 2023 à 00:30 +0200, Maxime Devos a écrit : > > >       The best prevention is not allowing redirects at all or only > >       allowing redirections that keep the hostname intact -- while > > an > >       option for much software, it isn't an option for web > > browsers. > >

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Maxime Devos
    The best prevention is not allowing redirects at all or only     allowing redirections that keep the hostname intact -- while an     option for much software, it isn't an option for web browsers. Partially scratch that -- restricting to ‘keeping hostname intact’ is insufficient, becaus

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Maxime Devos
Op 03-10-2023 om 22:03 schreef Vivien Kraus: Hello! Le lundi 25 septembre 2023 à 22:46 +0200, Maxime Devos a écrit : However, there are also some dangers on doing this thing -- the ‘external’ pagehttps://example.com/data.json  could redirect to http://localhost/unsecured-secret-but-its-localho

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-03 Thread Vivien Kraus
Hello! Le lundi 25 septembre 2023 à 22:46 +0200, Maxime Devos a écrit : > However, there are also some dangers on doing this > thing -- the ‘external’ page https://example.com/data.json could > redirect to > http://localhost/unsecured-secret-but-its-localhost-only-so-it-is-safe > . Since you w

Re: [PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-09-25 Thread Maxime Devos
Op 25-09-2023 om 18:48 schreef Vivien Kraus: * module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. --- Dear

[PATCH] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-09-25 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. --- Dear Guile developers, When you request https://exam