From 12a1de960b51206e8dcc3fc64ccc618d3a70af45 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:05 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20240 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/main.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 8fd60d417..41fb70d17 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -53,18 +53,6 @@ $clicks = session::get('clicks'); $clicks ++ ; session::set('clicks', $clicks); - -/* On some systems we can not operate on uploaded tmp files. We need to - * explicitely copy them first - */ -foreach($_FILES as $postName => $entry){ - $tempfile = tempnam(sys_get_temp_dir(), 'GOsa'); - if(move_uploaded_file($_FILES[$postName]['tmp_name'], $tempfile)){ - $_FILES[$postName]['tmp_name'] = $tempfile; - } -} - - pathNavigator::clear(); if ($_SERVER["REQUEST_METHOD"] == "POST"){ -- 2.30.2