From: hickert Date: Wed, 17 Nov 2010 09:15:31 +0000 (+0000) Subject: Updated handling of uploaded files, thanks to bcooksley X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4f52554ae5319ddff188515436f3bdc343917d47;p=gosa.git Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20247 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_textEditor.inc b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_textEditor.inc index 93b7951c1..4fc28545c 100644 --- a/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_textEditor.inc +++ b/gosa-plugins/goto/admin/ConfigManagement/class_TemplateWidget_textEditor.inc @@ -41,7 +41,7 @@ class TemplateWidget_textEditor extends TemplateWidget }elseif(($_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->value = $str; // Check encoding again