Only detect http links
This commit is contained in:
parent
77e1ec6df2
commit
0616f5230c
|
@ -257,11 +257,11 @@ class PageInfo
|
||||||
$body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '', $body);
|
$body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '', $body);
|
||||||
|
|
||||||
// Search for pure links
|
// Search for pure links
|
||||||
preg_match("/\[url\](.*?)\[\/url\]/ism", $body, $matches);
|
preg_match("/\[url\](https?:.*?)\[\/url\]/ism", $body, $matches);
|
||||||
|
|
||||||
if (!$matches) {
|
if (!$matches) {
|
||||||
// Search for links with descriptions
|
// Search for links with descriptions
|
||||||
preg_match("/\[url\=(.*?)\].*?\[\/url\]/ism", $body, $matches);
|
preg_match("/\[url\=(https?:.*?)\].*?\[\/url\]/ism", $body, $matches);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$matches && $searchNakedUrls) {
|
if (!$matches && $searchNakedUrls) {
|
||||||
|
|
Loading…
Reference in a new issue