mirror of
https://github.com/nextcloud/server.git
synced 2026-03-06 07:21:11 -05:00
Merge pull request #24564 from owncloud/fix_21173_take_2
normalize path in getInternalPath
This commit is contained in:
commit
eb6ae84cee
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ class MountPoint implements IMountPoint {
|
|||
* @return string
|
||||
*/
|
||||
public function getInternalPath($path) {
|
||||
$path = Filesystem::normalizePath($path, true, false, true);
|
||||
if ($this->mountPoint === $path or $this->mountPoint . '/' === $path) {
|
||||
$internalPath = '';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue