X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FPageInfo.php;h=d3b38336b5d790baeaec023fbb22fa7266f2397a;hb=68046573a4171dcbd5db75a991487bafa4b4370f;hp=21f32cd3c38dad350c1f6795595333c6195ec5dc;hpb=77e1ec6df2076183cf3643170a474278f368f968;p=friendica.git diff --git a/src/Content/PageInfo.php b/src/Content/PageInfo.php index 21f32cd3c3..d3b38336b5 100644 --- a/src/Content/PageInfo.php +++ b/src/Content/PageInfo.php @@ -257,11 +257,11 @@ class PageInfo $body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '', $body); // Search for pure links - preg_match("/\[url\](.*?)\[\/url\]/ism", $body, $matches); + preg_match("/\[url\](https?:.*?)\[\/url\]/ism", $body, $matches); if (!$matches) { // Search for links with descriptions - preg_match("/\[url\=(.*?)\].*?\[\/url\]/ism", $body, $matches); + preg_match("/\[url\=(https?:.*?)\].*?\[\/url\]/ism", $body, $matches); } if (!$matches && $searchNakedUrls) {