mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Disconnect comment links fom the WebUI (#15251)
This commit is contained in:
parent
d1bd426618
commit
2b05b2b471
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ window.qBittorrent.Misc = (function() {
|
||||||
*/
|
*/
|
||||||
const parseHtmlLinks = function(text) {
|
const parseHtmlLinks = function(text) {
|
||||||
const exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/ig;
|
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) {
|
const escapeHtml = function(str) {
|
||||||
|
|
Loading…
Reference in a new issue