From 5e112ca01d9391eaef69f62f5c8894afea50e008 Mon Sep 17 00:00:00 2001 From: Ulysse Valdenaire Date: Wed, 9 Oct 2024 12:03:35 +0200 Subject: [PATCH] use target='_blank' for mailto links --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 586110392e4bf..7bff581e4039c 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2762,7 +2762,7 @@ function dol_print_email($email, $cid = 0, $socid = 0, $addlink = 0, $max = 64, $newemail .= 'mailto:'; } $newemail .= $email; - $newemail .= '">'; + $newemail .= '" target="_blank">'; $newemail .= dol_trunc($email, $max); $newemail .= ''; if ($showinvalid && !isValidEmail($email)) {