Bottom
Important bug in EnvoAvatar : filesize limit doesn't work
  • Posted: 13.06.2005, 21:10
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    09.10.08
    Posts:
    266
    Nolan M. (UHEweb) repoted that Recently, while upgrading a site and re-installing envoAvatar, he noticed that the size and width/height functions in envoAvatar did not limit a users ability to upload an image - the upload stated them correctly, but the code failed to do the check and reject it if not.
    He proposed the following changes wich did solve the problem.
    In the modules/EnvoAvatar/index.php change :
    Code
    $dimfile=filesize($uploadfile);
    to :
    Code
    $dimfile=$uploadfile['size'];
    And a few lines after change :
    Code
    $array_dim = getimagesize ($uploadfile);
    to :
    Code
    $array_dim = getimagesize ($uploadfile['tmp_name']);


    Thanks to him fo this fix.
    And the wierd thing is that this problem was already reported, solved, but that I forgot to incorporate the fix in the files on Downloads !! Bad project managment icon_redface
Quick reply
 
  • Options
Code:
Font color:  
Font size: