From 2b4b2f70fd55f9f2f1bd2b4b574da8124cc6c6bf Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Wed, 19 Mar 2025 10:54:34 -0400 Subject: [PATCH] i2ptunnel: Version the proxy CSS in more places --- .../src/net/i2p/i2ptunnel/localServer/LocalHTTPServer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/localServer/LocalHTTPServer.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/localServer/LocalHTTPServer.java index 1b00b680c4..ef7e729a75 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/localServer/LocalHTTPServer.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/localServer/LocalHTTPServer.java @@ -12,6 +12,7 @@ import java.util.Map; import java.util.Properties; import net.i2p.I2PAppContext; +import net.i2p.CoreVersion; import net.i2p.client.I2PSession; import net.i2p.client.I2PSessionException; import net.i2p.client.naming.NamingService; @@ -295,7 +296,7 @@ public abstract class LocalHTTPServer { .append(_t("Your new encryption key")) .append("</title>\n" + "<link rel=\"shortcut icon\" href=\"http://proxy.i2p/themes/console/images/favicon.ico\" >\n" + - "<link href=\"http://proxy.i2p/themes/console/default/proxy.css\" rel=\"stylesheet\" type=\"text/css\" >\n" + + "<link href=\"http://proxy.i2p/themes/console/default/proxy.css?" + CoreVersion.VERSION + "\" rel=\"stylesheet\" type=\"text/css\" >\n" + "</head><body>\n" + "<div class=logo>\n" + "<a href=\"") @@ -369,7 +370,7 @@ public abstract class LocalHTTPServer { "<html><head>"+ "<title>" + _t("Redirecting to {0}", idn) + "</title>\n" + "<link rel=\"shortcut icon\" href=\"http://proxy.i2p/themes/console/images/favicon.ico\" >\n" + - "<link href=\"http://proxy.i2p/themes/console/default/proxy.css\" rel=\"stylesheet\" type=\"text/css\" >\n" + + "<link href=\"http://proxy.i2p/themes/console/default/proxy.css?" + CoreVersion.VERSION + "\" rel=\"stylesheet\" type=\"text/css\" >\n" + "<meta http-equiv=\"Refresh\" content=\"1; url=" + url + "\">\n" + "</head><body>\n" + "<div class=logo>\n" + @@ -403,7 +404,7 @@ public abstract class LocalHTTPServer { "<html><head>"+ "<title>" + _t("Redirecting to {0}", idn) + "</title>\n" + "<link rel=\"shortcut icon\" href=\"http://proxy.i2p/themes/console/images/favicon.ico\" >\n" + - "<link href=\"http://proxy.i2p/themes/console/default/proxy.css\" rel=\"stylesheet\" type=\"text/css\" >\n" + + "<link href=\"http://proxy.i2p/themes/console/default/proxy.css?" + CoreVersion.VERSION + "\" rel=\"stylesheet\" type=\"text/css\" >\n" + "<meta http-equiv=\"Refresh\" content=\"1; url=" + url + "\">\n" + "</head><body>\n" + "<div class=logo>\n" + -- GitLab