summaryrefslogtreecommitdiffstats
path: root/lib/private/connector
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-06-15 17:49:11 +0200
committerVincent Petry <pvince81@owncloud.com>2015-06-15 17:49:11 +0200
commit1f91e9e65da2a3f029f403ac5f1b7114235383a8 (patch)
treedfbba01fcd778acf1a5ee56b308026a515968c15 /lib/private/connector
parentb6165b68655fdf957d9b63ab982a5f8724fcc3de (diff)
downloadnextcloud-server-1f91e9e65da2a3f029f403ac5f1b7114235383a8.tar.gz
nextcloud-server-1f91e9e65da2a3f029f403ac5f1b7114235383a8.zip
Convert invalid path exception to sabre exception on MOVE
Diffstat (limited to 'lib/private/connector')
-rw-r--r--lib/private/connector/sabre/objecttree.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index a73c9a860b0..c96a745fcd4 100644
--- a/lib/private/connector/sabre/objecttree.php
+++ b/lib/private/connector/sabre/objecttree.php
@@ -106,7 +106,11 @@ class ObjectTree extends \Sabre\DAV\Tree {
$path = trim($path, '/');
if ($path) {
- $this->fileView->verifyPath($path, basename($path));
+ try {
+ $this->fileView->verifyPath($path, basename($path));
+ } catch (\OCP\Files\InvalidPathException $ex) {
+ throw new InvalidPath($ex->getMessage());
+ }
}
if (isset($this->cache[$path])) {