]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #33061 from ibpl/master-IB#1121253
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>
Tue, 14 Mar 2023 16:28:22 +0000 (17:28 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2023 16:28:22 +0000 (17:28 +0100)
Paths added to messages and message cleanup

1  2 
lib/private/Files/Node/Folder.php

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