Merge pull request #18448 from nextcloud/fix/noid/wrong-paths-for-fileids

pass the proper storage-internal path
This commit is contained in:
Roeland Jago Douma 2019-12-17 16:04:20 +01:00 committed by GitHub
commit ac045a2461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class File implements IEntity, IDisplayText {
try {
$node = $this->getNode();
$ruleMatcher->setEntitySubject($this, $node);
$ruleMatcher->setFileInfo($node->getStorage(), $node->getPath());
$ruleMatcher->setFileInfo($node->getStorage(), $node->getInternalPath());
} catch (NotFoundException $e) {
// pass
}