URLUtil path has changed since sabredav 1.8 - fixes renaming issue in dav clients
This commit is contained in:
parent
70dae328b5
commit
6900dd34a4
@ -3,6 +3,7 @@
|
|||||||
namespace Zotlabs\Storage;
|
namespace Zotlabs\Storage;
|
||||||
|
|
||||||
use Sabre\DAV;
|
use Sabre\DAV;
|
||||||
|
use Sabre\HTTP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief RedDirectory class.
|
* @brief RedDirectory class.
|
||||||
@ -159,7 +160,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
|
|||||||
throw new DAV\Exception\Forbidden('Permission denied.');
|
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;
|
$new_path = $parent_path . '/' . $name;
|
||||||
|
|
||||||
$r = q("UPDATE attach SET filename = '%s' WHERE hash = '%s' AND uid = %d",
|
$r = q("UPDATE attach SET filename = '%s' WHERE hash = '%s' AND uid = %d",
|
||||||
|
Reference in New Issue
Block a user