allow external redirection (as can't find this restriction in gemini specification)

This commit is contained in:
yggverse 2025-02-01 20:49:06 +02:00
parent a4f3fe449a
commit c8fee68599

View File

@ -373,7 +373,7 @@ fn handle(
page.set_progress(0.0);
page.set_title(&status.title());
redirects.replace(0); // reset
/* @TODO can't find that in specification:
// Disallow external redirection by protocol restrictions
} else if "gemini" != target.scheme()
|| uri.port() != target.port()
@ -383,6 +383,7 @@ fn handle(
page.set_progress(0.0);
page.set_title(&status.title());
redirects.replace(0); // reset
*/
// Valid
} else {
if matches!(response.meta.status, Status::PermanentRedirect) {