Changeset 544 for branches/release-1_3


Ignore:
Timestamp:
Oct 3, 2004, 12:20:57 PM (20 years ago)
Author:
z0rglub
Message:

bug 40 : case issue for uploaded pictures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/upload.php

    r350 r544  
    3131                          $image_max_width, $image_max_height )
    3232{
    33   global $lang;
     33  global $conf, $lang;
    3434               
    3535  $result = array();
     
    3737  //echo $_FILES['picture']['name']."<br />".$temp_name;
    3838  $extension = get_extension( $_FILES['picture']['name'] );
    39   if ( $extension != 'gif' and $extension != 'jpg' and $extension != 'png' )
     39  if ( in_array( $extension, $conf['picture_ext'] )
    4040  {
    4141    array_push( $result['error'], $lang['upload_advise_filetype'] );
Note: See TracChangeset for help on using the changeset viewer.