diff --git a/src/RepositoryDir.php b/src/RepositoryDir.php index 08f23fd0..769c59b8 100644 --- a/src/RepositoryDir.php +++ b/src/RepositoryDir.php @@ -82,13 +82,17 @@ class RepositoryDir extends RepositoryBase { function file_get_contents ($file) { if (substr($file, 0, 1) === '.' || preg_match("/\/\./", $file)) { - return null; + return false; } if (!$this->access($file)) { return false; } + if (!file_exists("{$this->path}/{$file}")) { + return null; + } + return file_get_contents("{$this->path}/{$file}"); }