mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Disconnect comment links fom the WebUI (#15251)
This commit is contained in:
committed by
GitHub
parent
ce554e6c77
commit
60b1e692b9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user