Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
[access.fs] Fix is_readable call for folders inside API. Fix #988
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 17, 2015
1 parent d896a09 commit e7bb995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/access.fs/class.fsAccessWrapper.php
Expand Up @@ -142,7 +142,7 @@ protected static function initPath($path, $streamType, $storeOpenContext = false
if ($afterPath != "" && substr_count($afterPath, "/") < 2) {
$statValue = array();
if (substr_count($afterPath, "/") == 0) {
$statValue[2] = $statValue["mode"] = ($item["folder"]?"00040000":"0100000");
$statValue[2] = $statValue["mode"] = ($item["folder"]?"00040555":"0100555");
$statValue[7] = $statValue["size"] = $item["size"];
$statValue[8] = $statValue["atime"] = $item["mtime"];
$statValue[9] = $statValue["mtime"] = $item["mtime"];
Expand All @@ -160,7 +160,7 @@ protected static function initPath($path, $streamType, $storeOpenContext = false
$arr = explode("/", $afterPath);
$afterPath = array_shift($arr);
if(isSet($folders[$afterPath]) || isSet($builtFolders[$afterPath])) continue;
$statValue[2] = $statValue["mode"] = "00040000";
$statValue[2] = $statValue["mode"] = "00040555";
$statValue[7] = $statValue["size"] = 0;
$statValue[8] = $statValue["atime"] = $item["mtime"];
$statValue[9] = $statValue["mtime"] = $item["mtime"];
Expand Down

0 comments on commit e7bb995

Please sign in to comment.