X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=a3c176691d83517535fe8fcd521cb4f4a559770b;hp=29f49585d1470d3b9f2d1b2084f604e4356d9d60;hb=e995a896255f853ea731a602a6f4902878f16980;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60
diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php
index 29f49585d1..a3c176691d 100644
--- a/inc/libs/html_mail_functions.php
+++ b/inc/libs/html_mail_functions.php
@@ -1,7 +1,7 @@
".$check."".substr($text, strpos($text, $check2) + strlen($check));
+ $text = substr($text, 0, strpos($text, $check2)) . '' . $check . '' . substr($text, strpos($text, $check2) + strlen($check));
// Finally remove the url from testing string (or we have a loop and maybe server overload!)
$test = substr($test, strpos($test, $check) + strlen($check));
@@ -134,7 +135,7 @@ function insertUrlsIntoHtml ($text) {
} // END - if
// Now replace the email against anchor with mailto and pray...
- $PARTS[] = $check2 . "" . $check . "";
+ $PARTS[] = $check2 . '' . $check . '';
// Remove email from testing string (see above why...)
$test = substr($test, strlen($check));