From 83e13c03c7105943d4cbf9d76ce97f9a7d1a98d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 28 Jun 2011 09:10:03 +0000 Subject: [PATCH] --- cms/tinymce_dms.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cms/tinymce_dms.php b/cms/tinymce_dms.php index 04269718b..670ea75bd 100644 --- a/cms/tinymce_dms.php +++ b/cms/tinymce_dms.php @@ -176,6 +176,12 @@ if(isset($_POST['fileupload'])) if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { + if(!chgrp($uploadfile,'dms')) + echo 'CHGRP failed'; + if(!chmod($uploadfile, 0774)) + echo 'CHMOD failed'; + exec('sudo chown wwwrun '.$uploadfile); + $dms = new dms(); if($dms_id!='')