Merge pull request #95 from elrido/rugk-permissions
Set permissions when saving files
This commit is contained in:
commit
46d32948f1
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ abstract class persistence
|
|||
if ($writtenBytes === false || $writtenBytes < strlen($data)) {
|
||||
throw new Exception('unable to write to file ' . $file, 13);
|
||||
}
|
||||
@chmod($file, 0640); // protect file access
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue