Code

Updated handling of uploaded files, thanks to bcooksley
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Nov 2010 09:15:35 +0000 (09:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Nov 2010 09:15:35 +0000 (09:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20248 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHookEntry.inc

index f0aa449ed3f78a62952722f3a261480fae587b33..84bac6b142b325f108cb0acaa536a2ccfb81b782 100644 (file)
@@ -79,7 +79,7 @@ class faiHookEntry extends plugin
       if(($_FILES['ImportFile']['size']==0)){
         msg_dialog::display(_("Error"), msgPool::incorrectUpload(_("file is empty")), ERROR_DIALOG);
       }else{
-        $str = file_get_contents($_FILES['ImportFile']['tmp_name']);
+        $str = file_get_contents(gosa_file_name($_FILES['ImportFile']['tmp_name']));
         $this->FAIscript = $str;
 
         // Check encoding again