Skip to content

Commit

Permalink
Merge pull request #1131 from Easya-Solutions/2022.5.3_rc_target_blan…
Browse files Browse the repository at this point in the history
…k_mailto_link

use target='_blank' for mailto links
  • Loading branch information
lvessiller-opendsi authored Oct 11, 2024
2 parents 310fc06 + 5e112ca commit e219db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '</a>';
if ($showinvalid && !isValidEmail($email)) {
Expand Down

0 comments on commit e219db0

Please sign in to comment.