Fix broken mail inline links where links contains another url inside their urls.

This commit is contained in:
Hadi Nategh 2019-02-12 15:00:27 +01:00
parent f8a707274a
commit 34a50af358

View File

@ -111,7 +111,7 @@ class Html
$match[4] = ">";
}
//error_log(__METHOD__.__LINE__.array2string($match));
return $match[1]."<a href=\"http://www".$match[2].$match[3]."\" target=\"_blank\">"."www".$match[2].$match[3]."</a>".$match[4];
return $match[1] == "" ? "" : $match[1]."<a href=\"http://www".$match[2].$match[3]."\" target=\"_blank\">"."www".$match[2].$match[3]."</a>".$match[4];
}, $result3 );
}
return $result4;