summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-10-18 09:10:24 -0700
committerFrank Karlitschek <frank@owncloud.org>2013-10-18 09:10:24 -0700
commite6d13468d3b0d72c76327436bf15364fbf4aa696 (patch)
tree2fc68be5e3208ed3405c8df02bb710f38f25d952
parentb201e87af63d212bfd7540d0000b29322a268012 (diff)
parent9e99f9d13db31ea2238d8de4c81c59cad49928d0 (diff)
downloadnextcloud-server-e6d13468d3b0d72c76327436bf15364fbf4aa696.tar.gz
nextcloud-server-e6d13468d3b0d72c76327436bf15364fbf4aa696.zip
Merge pull request #5422 from owncloud/fix_logfile_permissions
the logfile shoudn't be world readable.
-rw-r--r--lib/private/log/owncloud.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/log/owncloud.php b/lib/private/log/owncloud.php
index a408e3830d6..036c93cd8e1 100644
--- a/lib/private/log/owncloud.php
+++ b/lib/private/log/owncloud.php
@@ -61,6 +61,7 @@ class OC_Log_Owncloud {
$entry=array('app'=>$app, 'message'=>$message, 'level'=>$level, 'time'=> $time->format($format));
$entry = json_encode($entry);
$handle = @fopen(self::$logFile, 'a');
+ @chmod(self::$logFile, 0640);
if ($handle) {
fwrite($handle, $entry."\n");
fclose($handle);