the logfile shoudn't be world readable.

This commit is contained in:
Frank Karlitschek 2013-10-18 17:15:02 +02:00
parent b201e87af6
commit 9e99f9d13d
1 changed files with 1 additions and 0 deletions

View File

@ -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);