mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Added rel=noopener to target=_blank links to prevent window.opener spoof.
This commit is contained in:
parent
7a5a2f65f9
commit
9b481323aa
7 changed files with 10 additions and 10 deletions
|
@ -425,7 +425,7 @@ $(document).on("ajaxUI:start", function () {
|
|||
$(this).removeAttr('data-markdown');
|
||||
|
||||
//Make all links external
|
||||
$('a', this).addClass('link-external').attr('target', '_blank');
|
||||
$('a', this).addClass('link-external').attr('target', '_blank').attr('rel', 'noopener');
|
||||
//Bootstrapify objects
|
||||
$('table', this).addClass('table table-hover table-striped table-bordered');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue