Changeset 597


Ignore:
Timestamp:
11/09/04 09:49:15 (15 years ago)
Author:
plg
Message:

verifies whether the file has a picture extension before trying getimagesize function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r593 r597  
    3939  global $conf, $tab_ext_create_TN; 
    4040 
    41   if ( is_file( $filename ) ) 
     41  if (is_file($filename) 
     42      and in_array(get_extension($filename), $conf['picture_ext'])) 
    4243  { 
    4344    $size = getimagesize( $filename ); 
Note: See TracChangeset for help on using the changeset viewer.