From aaed6e4c8ccf6dec638544d91999da0bb1ece054 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Nov 2010 09:15:50 +0000 Subject: [PATCH] Updated handling of uploaded files, thanks to bcooksley git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20252 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc index 2a3491f82..1274a27f3 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc @@ -210,7 +210,7 @@ class mimetype extends plugin /* Set a new icon was requested */ if(isset($_POST['update_icon']) && (isset($_FILES['picture_file']['name']))){ - $this->set_new_picture($_FILES['picture_file']['tmp_name']); + $this->set_new_picture(gosa_file_name($_FILES['picture_file']['tmp_name'])); } /* Add gotoMimeFilePattern */ -- 2.30.2