From: hickert Date: Wed, 17 Nov 2010 09:15:42 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2fb9ec4fd0113a8add41319e1e946ef8547dfd06;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20250 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc index 68fb8972c..baf0af90d 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc @@ -68,7 +68,7 @@ class faiTemplateEntry extends plugin $display = ""; if(isset($_POST['TmpFileUpload']) && $this->acl_is_writeable("FAItemplateFile")){ - if($str=file_get_contents($_FILES['FAItemplateFile']['tmp_name'])){ + if($str=file_get_contents(gosa_file_name($_FILES['FAItemplateFile']['tmp_name']))){ $this->FAItemplateFile = $str; /* If we don't have a filename set it from upload filename. */