diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-24 11:32:17 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-24 11:42:04 +0200 |
commit | 169faf8c3297739df9a434bf92035ed1e052445e (patch) | |
tree | 910d4996d9c73a59d870063f4f7786ab0e66b41a /lib/private | |
parent | 19ad058d0676819536953074091d915dfec8e39f (diff) | |
download | nextcloud-server-169faf8c3297739df9a434bf92035ed1e052445e.tar.gz nextcloud-server-169faf8c3297739df9a434bf92035ed1e052445e.zip |
Remove sensible information from exception message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Node/Folder.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index a6165fa9636..288a02ef207 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -42,7 +42,7 @@ class Folder extends Node implements \OCP\Files\Folder { */ public function getFullPath($path) { if (!$this->isValidPath($path)) { - throw new NotPermittedException('Invalid path: ' . $path); + throw new NotPermittedException('Invalid path'); } return $this->path . $this->normalizePath($path); } @@ -152,7 +152,7 @@ class Folder extends Node implements \OCP\Files\Folder { $this->root->emit('\OC\Files', 'postCreate', array($node)); return $node; } else { - throw new NotPermittedException('No create permission for folder ' . $this->getFullPath($path)); + throw new NotPermittedException('No create permission for folder'); } } @@ -173,7 +173,7 @@ class Folder extends Node implements \OCP\Files\Folder { $this->root->emit('\OC\Files', 'postCreate', array($node)); return $node; } else { - throw new NotPermittedException('No create permission for path ' . $this->getFullPath($path)); + throw new NotPermittedException('No create permission for path'); } } @@ -321,7 +321,7 @@ class Folder extends Node implements \OCP\Files\Folder { $this->root->emit('\OC\Files', 'postDelete', array($nonExisting)); $this->exists = false; } else { - throw new NotPermittedException('No delete permission for path ' . $this->getFullPath($this->path)); + throw new NotPermittedException('No delete permission for path'); } } @@ -343,7 +343,7 @@ class Folder extends Node implements \OCP\Files\Folder { $this->root->emit('\OC\Files', 'postWrite', array($targetNode)); return $targetNode; } else { - throw new NotPermittedException('No permission to copy to path ' . $targetPath); + throw new NotPermittedException('No permission to copy to path'); } } @@ -366,7 +366,7 @@ class Folder extends Node implements \OCP\Files\Folder { $this->path = $targetPath; return $targetNode; } else { - throw new NotPermittedException('No permission to move to path ' . $targetPath); + throw new NotPermittedException('No permission to move to path'); } } |