Skip to content
Snippets Groups Projects
Commit e6d13468 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

Merge pull request #5422 from owncloud/fix_logfile_permissions

the logfile shoudn't be world readable.
parents b201e87a 9e99f9d1
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment