diff options
| author | spiderr <spider@viovio.com> | 2010-08-05 12:02:24 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2010-08-05 12:02:24 -0400 |
| commit | fa07dc6490b39b459e251137dac97ccc24e5f191 (patch) | |
| tree | 9121e2bb657a1fc829e738bbfac0a94190c60675 | |
| parent | 1b8d243fe46b49bd4022cdadf6e5d3ae2a04b02a (diff) | |
| download | fisheye-fa07dc6490b39b459e251137dac97ccc24e5f191.tar.gz fisheye-fa07dc6490b39b459e251137dac97ccc24e5f191.tar.bz2 fisheye-fa07dc6490b39b459e251137dac97ccc24e5f191.zip | |
use scanFile['tmp_name'] in process dir check
| -rw-r--r-- | upload_inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upload_inc.php b/upload_inc.php index 4ca8eaf..64af5e3 100644 --- a/upload_inc.php +++ b/upload_inc.php @@ -185,7 +185,7 @@ function fisheye_process_directory( $pDestinationDir, &$pParentGallery, $pRoot=F } else { $errors = array_merge( $errors, array_values( $newImage->mErrors ) ); } - } elseif( is_file( $scanFile ) ) { + } elseif( is_file( $scanFile['tmp_name'] ) ) { // unknown file type, let's be tidy and clean it up unlink( $scanFile ); } |
