X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Futil.php;h=e5b0c86e06160599436901a3f84c4a8717d2932e;hb=119d0f7dbab40f30170ba263de78d7e9cea984db;hp=f734062eced327cec4423eaf9732634778af207d;hpb=62a5f270d618d17f7dd68898a3796a9aa0dc578c;p=quix0rs-gnu-social.git diff --git a/lib/util.php b/lib/util.php index f734062ece..e5b0c86e06 100644 --- a/lib/util.php +++ b/lib/util.php @@ -925,11 +925,11 @@ function common_linkify($url) { // functions $url = htmlspecialchars_decode($url); - if(strpos($url, '@') !== false && strpos($url, ':') === false) { - //url is an email address without the mailto: protocol - $canon = "mailto:$url"; - $longurl = "mailto:$url"; - }else{ + if (strpos($url, '@') !== false && strpos($url, ':') === false && Validate::email($url)) { + //url is an email address without the mailto: protocol + $canon = "mailto:$url"; + $longurl = "mailto:$url"; + } else { $canon = File_redirection::_canonUrl($url);