Code

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

gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc

index 2a3491f82838ab1d38230a6a3ddac7e2ed2c72ad..1274a27f31a0936cc64cfb3fe9887249f362c169 100644 (file)
@@ -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 */