diff -ur xinha2/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php xinha1/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php
|
old
|
new
|
|
| 455 | 456 | Return false; |
| 456 | 457 | } |
| 457 | 458 | |
| 458 | | if(!is_file($file['tmp_name'])) |
| 459 | | { |
| 460 | | Return false; |
| 461 | | } |
| 462 | | |
| 463 | 459 | if(!is_uploaded_file($file['tmp_name'])) |
| 464 | 460 | { |
| 465 | 461 | Files::delFile($file['tmp_name']); |
diff -ur xinha2/plugins/ImageManager/Classes/Files.php xinha1/plugins/ImageManager/Classes/Files.php
|
old
|
new
|
|
| 35 | 35 | */ |
| 36 | 36 | function copyFile($source, $destination_dir, $destination_file, $unique=true) |
| 37 | 37 | { |
| 38 | | if(!(file_exists($source) && is_file($source))) |
| | 38 | if(!is_uploaded_file($source) && !(file_exists($source) && is_file($source))) |
| 39 | 39 | return FILE_ERROR_NO_SOURCE; |
| 40 | 40 | |
| 41 | 41 | $destination_dir = Files::fixPath($destination_dir); |