guess_image_type - ignore scheme when checking for urls

This commit is contained in:
zotlabs 2017-06-25 18:09:34 -07:00
parent 07d6472eea
commit 21542d1f9e

View File

@ -495,7 +495,7 @@ function guess_image_type($filename, $headers = '') {
}
}
if(is_null($type) && (strpos($filename,'http:') === false)) {
if(is_null($type) && (strpos($filename,'http') === false)) {
$size = getimagesize($filename);
$ph = photo_factory('');
$types = $ph->supportedTypes();