Disconnect comment links fom the WebUI (#15251)

This commit is contained in:
Daniel Aleksandersen 2021-08-03 10:26:04 +02:00 committed by sledgehammer999
parent d1bd426618
commit 2b05b2b471
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -163,7 +163,7 @@ window.qBittorrent.Misc = (function() {
*/
const parseHtmlLinks = function(text) {
const exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/ig;
return text.replace(exp, "<a target='_blank' href='$1'>$1</a>");
return text.replace(exp, "<a target='_blank' rel='noopener noreferrer' href='$1'>$1</a>");
}
const escapeHtml = function(str) {