]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
IHTTPResult::getContentType is now a string again
[friendica.git] / src / Network / Probe.php
index 14dcdea336e9f2e0ee985bcf6c3a22d212610c5b..cfd03684397c9afb023dfdd55c139696c65310a9 100644 (file)
@@ -429,7 +429,7 @@ class Probe
                }
 
                // If it isn't a HTML file then exit
-               if (!in_array('html', $curlResult->getContentType())) {
+               if (($curlResult->getContentType() != '') && !strstr(strtolower($curlResult->getContentType()), 'html')) {
                        return false;
                }