From 4b88cd5a200f21138b67df4e319a0bec0d9eda91 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Thu, 20 Sep 2007 06:47:03 +0000 Subject: add _files_override to LIbertyAttachable::verify to control what gets sucked up as an upload. fixes archive extraction in fisheye, and other obscure reasons to manually stuff a file upload hash --- upload_inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'upload_inc.php') diff --git a/upload_inc.php b/upload_inc.php index 959f720..82262cb 100644 --- a/upload_inc.php +++ b/upload_inc.php @@ -1,6 +1,6 @@ hasPermission( 'p_fisheye_upload_nonimages' ) ) { $newImage = new FisheyeImage(); - $imageHash = array( 'upload' => $scanFile ); + unset( $_FILES ); + $imageHash = array( '_files_override' => array( $scanFile ) ); if( $newImage->store( $imageHash ) ) { if( $pRoot ) { $newImage->addToGalleries( $_REQUEST['galleryAdditions'] ); -- cgit v1.3