From a41a9bfd6ca9bb203ecbd1dbf351f87ef29d76a1 Mon Sep 17 00:00:00 2001 From: Patrick Lenk Date: Thu, 6 Jun 2024 13:49:47 +0200 Subject: [PATCH] [BUGFIX] Drop removal of mailto for email links in plaintext Email links do not work without mailto. --- Classes/Plugin/DirectMail.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Classes/Plugin/DirectMail.php b/Classes/Plugin/DirectMail.php index 018d3b469..874e5b7e9 100644 --- a/Classes/Plugin/DirectMail.php +++ b/Classes/Plugin/DirectMail.php @@ -735,11 +735,6 @@ public function atag_to_http($content, $conf) $theLink = $this->getLink($theLink); - // remove mailto if it's an email link - if (strtolower(substr($theLink, 0, 7)) === 'mailto:') { - $theLink = substr($theLink, 7); - } - return $this->cObj->getCurrentVal() . ' (###LINK_PREFIX### ' . $theLink . ' )'; }