mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-23 00:06:18 -04:00
Add rel="noreferrer" to created links in received messages
This commit is contained in:
parent
ab67c5858d
commit
40379acc6c
1 changed files with 1 additions and 1 deletions
|
@ -2101,7 +2101,7 @@ class ReceiveTextDialog extends Dialog {
|
|||
let linkNodePlaceholder = `${p}${m}`;
|
||||
|
||||
// add linkNodePlaceholder to text node and save a reference to linkNodes object
|
||||
linkNodes[linkNodePlaceholder] = `<a href="${link}" target="_blank">${url}</a>`;
|
||||
linkNodes[linkNodePlaceholder] = `<a href="${link}" target="_blank" rel="noreferrer">${url}</a>`;
|
||||
return `${whitespaceOrSpecial}${linkNodePlaceholder}`;
|
||||
}
|
||||
// link is not valid -> do not replace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue