]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/PageInfo.php
Restructure Cache to follow new paradigm
[friendica.git] / src / Content / PageInfo.php
index 21f32cd3c38dad350c1f6795595333c6195ec5dc..d3b38336b5d790baeaec023fbb22fa7266f2397a 100644 (file)
@@ -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) {