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

the logfile shoudn't be world readable.

parent b201e87a
No related branches found
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.
Finish editing this message first!
Please register or to comment