guess_image_type - ignore scheme when checking for urls
This commit is contained in:
parent
07d6472eea
commit
21542d1f9e
@ -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);
|
$size = getimagesize($filename);
|
||||||
$ph = photo_factory('');
|
$ph = photo_factory('');
|
||||||
$types = $ph->supportedTypes();
|
$types = $ph->supportedTypes();
|
||||||
|
Reference in New Issue
Block a user