From 4ca6535f7386f8e096add0a4a1e9cb5313a13b10 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 6 Aug 2022 10:39:10 -0400 Subject: [PATCH] data uri relative links should not have slash --- cgi.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi.d b/cgi.d index ace4ef2..b0e4c89 100644 --- a/cgi.d +++ b/cgi.d @@ -2981,6 +2981,8 @@ struct Uri { /// Browsers use a function like this to figure out links in html. Uri basedOn(in Uri baseUrl) const { Uri n = this; // copies + if(n.scheme == "data") + return n; // n.uriInvalidated = true; // make sure we regenerate... // userinfo is not inherited... is this wrong?