diff --git a/js/privatebin.js b/js/privatebin.js index dc02e8f..c83d8ff 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -618,21 +618,15 @@ jQuery.PrivateBin = (function($, RawDeflate) { args[0] = translations[messageId]; } - // messageID may contain links, but should be from a trusted source (code or translation JSON files) - let containsNoLinks = args[0].indexOf(' 0) may never contain HTML as they may come from untrusted parties - if (i > 0 || containsNoLinks) { - args[i] = Helper.htmlEntities(args[i]); - } - } + // messageID may contain links, but only the first parameter, as that is from a trusted source (code or translation JSON files) + let containsLinks = args[0].indexOf(' - + diff --git a/tpl/page.php b/tpl/page.php index 865b029..0f8df18 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +