|
...
|
...
|
@@ -283,9 +283,6 @@ class HtmlCollect extends Command |
|
|
|
{
|
|
|
|
if ($url) {
|
|
|
|
$url = str_replace('"', '', $url);
|
|
|
|
if(strpos($url,'mailto:') !== false){
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
$arr = parse_url($url);
|
|
|
|
$scheme = $arr['scheme'] ?? '';
|
|
|
|
$host = $arr['host'] ?? '';
|
|
...
|
...
|
@@ -294,6 +291,7 @@ class HtmlCollect extends Command |
|
|
|
|
|
|
|
$path_arr = explode('.', $path);
|
|
|
|
if (
|
|
|
|
(empty($scheme) || $scheme == 'https' || $scheme = 'http')
|
|
|
|
(empty($host) || $host == $web_url_domain || $host == $home_url)
|
|
|
|
&& $path
|
|
|
|
&& (strpos($path, '.') !== false)
|
...
|
...
|
|