From 0a9b2b6b15bcf3f3b2fe604defd0cd99934f992b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 29 Oct 2015 11:29:11 +0100 Subject: possibly better fox for profil photo image type issue --- include/photo/photo_driver.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/photo') diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 810e0cdc7..f9b6e5ea8 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -593,11 +593,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) { if($photo) { $filename = basename($photo); - $type = guess_image_type($photo); - - if(! $type) - $type = 'image/jpeg'; - $result = z_fetch_url($photo,true); @@ -614,6 +609,7 @@ function import_xchan_photo($photo,$xchan,$thing = false) { } } } + $type = guess_image_type($photo, $result['header']); } } else { -- cgit v1.2.3