diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-25 18:09:34 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-25 18:09:34 -0700 |
commit | 21542d1f9e66638ff9b4012a63a0070d1abe652a (patch) | |
tree | bbae9b8aa3b76f247c5c5884c6dca04f3a870cd4 | |
parent | 07d6472eea377a9be7e35cca823307382a43df46 (diff) | |
download | volse-hubzilla-21542d1f9e66638ff9b4012a63a0070d1abe652a.tar.gz volse-hubzilla-21542d1f9e66638ff9b4012a63a0070d1abe652a.tar.bz2 volse-hubzilla-21542d1f9e66638ff9b4012a63a0070d1abe652a.zip |
guess_image_type - ignore scheme when checking for urls
-rw-r--r-- | include/photo/photo_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 9d27ef96e..f47a9c878 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -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(); |