From: hickert Date: Tue, 8 Jan 2008 08:19:43 +0000 (+0000) Subject: Closes #309 - The Copy&Paste directory (LDAP_DUMP_PATH) will now only be readable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a19686589b37084132bdcf0901efb29bdd3f34c0;p=gosa.git Closes #309 - The Copy&Paste directory (LDAP_DUMP_PATH) will now only be readable by the webservers user. Created files too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8239 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_CopyPasteHandler.inc b/gosa-core/include/class_CopyPasteHandler.inc index 60bf1270e..1c0ff8046 100644 --- a/gosa-core/include/class_CopyPasteHandler.inc +++ b/gosa-core/include/class_CopyPasteHandler.inc @@ -83,6 +83,7 @@ class CopyPasteHandler { /* Create patch if it doesn't exists */ if(!is_dir(LDAP_DUMP_PATH)){ @mkdir(LDAP_DUMP_PATH); + @chmod(LDAP_DUMP_PATH,0700); } /* check if we are able to create a new file the given directory */ @@ -132,6 +133,7 @@ class CopyPasteHandler { /* Create patch if it doesn't exists */ if(!is_dir($path)){ @mkdir($path); + @chmod($path,0700); } /* check if we are able to create a new file the given directory */