forked from abner/for-legacy-web
Explicitly deny bad URLs.
Fixes #252. Handle embed untrusted links better.
This commit is contained in:
@@ -151,11 +151,9 @@ export default function Intermediate(props: Props) {
|
||||
id: "external_link_prompt",
|
||||
link: link.href,
|
||||
});
|
||||
|
||||
return true;
|
||||
} else {
|
||||
window.open(link.href, "_blank", "noreferrer");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user