X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fparse_url.php;h=77529714f20f56a83cadcee7e075be5b8d07b2aa;hb=f146c85e75314462823076a9d89ac2e698e6de45;hp=0888db1012e395591a67a2ad1be426d024f49bae;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/mod/parse_url.php b/mod/parse_url.php index 0888db1012..77529714f2 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -59,7 +59,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 +71,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(); }