Skip to content

Commit

Permalink
Merge pull request #29433 from owncloud/stable10-a02dc57
Browse files Browse the repository at this point in the history
[stable10] Only read from an existing file
  • Loading branch information
DeepDiver1975 authored Nov 3, 2017
2 parents f959dd5 + 557b9d6 commit 6eec9c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/IntegrityCheck/Helpers/FileAccessHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class FileAccessHelper {
* @return string|false
*/
public function file_get_contents($filename) {
if (!$this->file_exists($filename)) {
return false;
}
return file_get_contents($filename);
}

Expand Down

0 comments on commit 6eec9c2

Please sign in to comment.