aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-11-09 08:49:15 +0000
committerplegall <plg@piwigo.org>2004-11-09 08:49:15 +0000
commit765bfa10b11c04168624a08e1b0e31e067c1f76a (patch)
tree9cae4d235a7d5446112815e4e39149a0f2c52024 /admin/include/functions.php
parentf6575d02e1ac0dbeabe3f2d3495176f9a98fb480 (diff)
verifies whether the file has a picture extension before trying getimagesize function
git-svn-id: http://piwigo.org/svn/trunk@597 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r--admin/include/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 9dcd17ebb..54ec9d8b2 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -38,7 +38,8 @@ function is_image( $filename, $create_thumbnail = false )
{
global $conf, $tab_ext_create_TN;
- if ( is_file( $filename ) )
+ if (is_file($filename)
+ and in_array(get_extension($filename), $conf['picture_ext']))
{
$size = getimagesize( $filename );
// $size[2] == 1 means GIF