A fix, but I have no case to verify.
I could not find out under which conditions this is relevant and therefore have no test case, but it must be of instance RedDAV\RedFile.
This commit is contained in:
parent
dc4593f5b5
commit
5aae5862f2
@ -117,7 +117,7 @@ function cloud_init(&$a) {
|
||||
if ((! $auth->observer) && ($_SERVER['REQUEST_METHOD'] === 'GET')) {
|
||||
try {
|
||||
$x = RedFileData('/' . $a->cmd, $auth);
|
||||
if($x instanceof RedFile)
|
||||
if($x instanceof RedDAV\RedFile)
|
||||
$isapublic_file = true;
|
||||
}
|
||||
catch (Exception $e) {
|
||||
@ -150,4 +150,4 @@ function cloud_init(&$a) {
|
||||
$server->exec();
|
||||
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user