summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-10-18 17:15:02 +0200
committerFrank Karlitschek <frank@owncloud.org>2013-10-18 17:15:02 +0200
commit9e99f9d13db31ea2238d8de4c81c59cad49928d0 (patch)
tree2fc68be5e3208ed3405c8df02bb710f38f25d952 /lib/private
parentb201e87af63d212bfd7540d0000b29322a268012 (diff)
downloadnextcloud-server-9e99f9d13db31ea2238d8de4c81c59cad49928d0.tar.gz
nextcloud-server-9e99f9d13db31ea2238d8de4c81c59cad49928d0.zip
the logfile shoudn't be world readable.
Diffstat (limited to 'lib/private')
-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);