add noopener noreferrer to href with target _blank

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-08-20 11:24:42 +02:00
parent d8e4978b61
commit 56ef9355da
8 changed files with 13 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
</div>
{{- end}}
{{- template "errmsg" .Error}}
<form id="folder_form" enctype="multipart/form-data" action="{{.CurrentURL}}" method="POST" autocomplete="off" {{if eq .Mode 3}}target="_blank"{{end}}>
<form id="folder_form" enctype="multipart/form-data" action="{{.CurrentURL}}" method="POST" autocomplete="off" {{if eq .Mode 3}}target="_blank" rel="noopener noreferrer"{{end}}>
{{- if eq .Mode 3}}
<div class="card mt-10">
<div class="card-header bg-light">