Ticket #1408: xinha.patch

File xinha.patch, 1.1 KB (added by guest, 11 years ago)
  • plugins/ExtendedFileManager/Classes/ExtendedFileManager.php

    diff -ur xinha2/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php xinha1/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php
    old new  
    455456                        Return false; 
    456457                } 
    457458 
    458                 if(!is_file($file['tmp_name'])) 
    459                 { 
    460                         Return false; 
    461                 } 
    462  
    463459                if(!is_uploaded_file($file['tmp_name'])) 
    464460                { 
    465461                        Files::delFile($file['tmp_name']); 
  • plugins/ImageManager/Classes/Files.php

    diff -ur xinha2/plugins/ImageManager/Classes/Files.php xinha1/plugins/ImageManager/Classes/Files.php
    old new  
    3535         */ 
    3636        function copyFile($source, $destination_dir, $destination_file, $unique=true)  
    3737        { 
    38                 if(!(file_exists($source) && is_file($source)))  
     38                if(!is_uploaded_file($source) && !(file_exists($source) && is_file($source)))  
    3939                        return FILE_ERROR_NO_SOURCE; 
    4040 
    4141                $destination_dir = Files::fixPath($destination_dir);