Make sure that path is normalized and then checked,

and not the other way around

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/35681/head
Côme Chilliet 2 years ago committed by backportbot-nextcloud[bot]
parent 12f68d2028
commit 540d70a6fe

@ -67,10 +67,11 @@ class Folder extends Node implements \OCP\Files\Folder {
* @throws \OCP\Files\NotPermittedException
*/
public function getFullPath($path) {
$path = $this->normalizePath($path);
if (!$this->isValidPath($path)) {
throw new NotPermittedException('Invalid path');
}
return $this->path . $this->normalizePath($path);
return $this->path . $path;
}
/**

Loading…
Cancel
Save