From: hickert Date: Wed, 17 Nov 2010 09:15:35 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af3303a2ee0b923048de17496d034e8bc5bf41d7;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20248 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc b/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc index f0aa449ed..84bac6b14 100644 --- a/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc @@ -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