X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=4fe9256349fe9a863509984d77995fd13c7e7945;hb=008c97c570ea62749a3f486b42c424365863d627;hp=0888db1012e395591a67a2ad1be426d024f49bae;hpb=0cd241bcbe762e38e2eba0c58800eb60a2240e36;p=friendica.git diff --git a/mod/parse_url.php b/mod/parse_url.php index 0888db1012..4fe9256349 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -10,7 +10,8 @@ * @see ParseUrl::getSiteinfo() for more information about scraping embeddable content */ -use \Friendica\ParseUrl; +use Friendica\App; +use Friendica\ParseUrl; require_once("include/items.php"); @@ -59,7 +60,7 @@ function parse_url_content(App $a) { $redirects = 0; // Fetch the header of the URL $result = z_fetch_url($url, false, $redirects, array("novalidate" => true, "nobody" => true)); - if ($result["success"]) { + if($result["success"]) { // Convert the header fields into an array $hdrs = array(); $h = explode("\n", $result["header"]); @@ -71,7 +72,7 @@ function parse_url_content(App $a) { $type = $hdrs["Content-Type"]; } if ($type) { - if (stripos($type, "image/") !== false) { + if(stripos($type, "image/") !== false) { echo $br . "[img]" . $url . "[/img]" . $br; killme(); }