]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/output/template/SprintfCommand.java
Merge "upd: add download tag and target tag to HTML links"
[gigi.git] / src / club / wpia / gigi / output / template / SprintfCommand.java
index d313df8afa51a977b6be32442767bbdc64483db6..7a525ab77cfaa69227cfe64ecb4ba50fb52de00d 100644 (file)
@@ -116,7 +116,7 @@ public final class SprintfCommand implements Translatable {
                     throw new Error("Need an absolute link for the link service.");
                 }
                 String link = "//" + host + replacement.substring(2);
-                out.print("<a href='" + HTMLEncoder.encodeHTML(link) + "'>");
+                out.print("<a href='" + HTMLEncoder.encodeHTML(link) + "' target='_blank' rel='noreferrer'>");
             } else if (replacement.startsWith("$")) {
                 Template.outputVar(out, l, externalVariables, replacement.substring(2), false);
             } else {