aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo/photo_driver.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-25 18:09:34 -0700
committerzotlabs <mike@macgirvin.com>2017-06-25 18:09:34 -0700
commit21542d1f9e66638ff9b4012a63a0070d1abe652a (patch)
treebbae9b8aa3b76f247c5c5884c6dca04f3a870cd4 /include/photo/photo_driver.php
parent07d6472eea377a9be7e35cca823307382a43df46 (diff)
downloadvolse-hubzilla-21542d1f9e66638ff9b4012a63a0070d1abe652a.tar.gz
volse-hubzilla-21542d1f9e66638ff9b4012a63a0070d1abe652a.tar.bz2
volse-hubzilla-21542d1f9e66638ff9b4012a63a0070d1abe652a.zip
guess_image_type - ignore scheme when checking for urls
Diffstat (limited to 'include/photo/photo_driver.php')
-rw-r--r--include/photo/photo_driver.php2
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();