Skip to content

Commit

Permalink
Merge pull request #5 from mhuebe/Missing-read-and-write-access-of-up…
Browse files Browse the repository at this point in the history
…loaded-files-by-editors

Fixed comparision of file and folder identifiers
  • Loading branch information
ptheg authored Jul 28, 2021
2 parents 4191f45 + 8a525fc commit 00adca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Driver/StorageDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function folderExists($folderIdentifier)
*/
public function isWithin($folderIdentifier, $identifier)
{
return GeneralUtility::isFirstPartOfStr($identifier, $folderIdentifier);
return GeneralUtility::isFirstPartOfStr('/' . ltrim($identifier, '/'), $folderIdentifier);
}

/**
Expand Down

0 comments on commit 00adca4

Please sign in to comment.