Skip to content

Commit

Permalink
Add rel="noreferrer" to created links in received messages
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagmichdoch authored Aug 30, 2024
1 parent ab67c58 commit 40379ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40379ac

Please sign in to comment.