aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-07-26 09:04:52 +0200
committerMario Vavti <mario@mariovavti.com>2016-07-26 09:04:52 +0200
commit6900dd34a47786521bcfcd7bd128be797e5f8477 (patch)
treeff93c59242f51a2f27c8dd222fd937c304747324 /Zotlabs
parent70dae328b5174543363163f8ca1c88c3c0af3cd8 (diff)
downloadvolse-hubzilla-6900dd34a47786521bcfcd7bd128be797e5f8477.tar.gz
volse-hubzilla-6900dd34a47786521bcfcd7bd128be797e5f8477.tar.bz2
volse-hubzilla-6900dd34a47786521bcfcd7bd128be797e5f8477.zip
URLUtil path has changed since sabredav 1.8 - fixes renaming issue in dav clients
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Storage/Directory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php
index 6242d5274..0860f99a1 100644
--- a/Zotlabs/Storage/Directory.php
+++ b/Zotlabs/Storage/Directory.php
@@ -3,6 +3,7 @@
namespace Zotlabs\Storage;
use Sabre\DAV;
+use Sabre\HTTP;
/**
* @brief RedDirectory class.
@@ -159,7 +160,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
throw new DAV\Exception\Forbidden('Permission denied.');
}
- list($parent_path, ) = DAV\URLUtil::splitPath($this->red_path);
+ list($parent_path, ) = HTTP\URLUtil::splitPath($this->red_path);
$new_path = $parent_path . '/' . $name;
$r = q("UPDATE attach SET filename = '%s' WHERE hash = '%s' AND uid = %d",