forked from MapComplete/MapComplete
Fix: fix reverse tabnabbing in most cases, add rel=noopener to most links to untrusted content
This commit is contained in:
parent
fd39f66e2e
commit
d9b8257e47
25 changed files with 462 additions and 77 deletions
|
@ -102,7 +102,7 @@ export default class CopyrightPanel extends Combine {
|
|||
let bgAttr: BaseUIElement | string = undefined
|
||||
if (attrText && attrUrl) {
|
||||
bgAttr =
|
||||
"<a href='" + attrUrl + "' target='_blank'>" + attrText + "</a>"
|
||||
"<a href='" + attrUrl + "' target='_blank' rel='noopener'>" + attrText + "</a>"
|
||||
} else if (attrUrl) {
|
||||
bgAttr = attrUrl
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue