[Pkg-owncloud-commits] [php-sabredav] 162/220: Correctly expanding relative hrefs.
David Prévot
taffit at moszumanska.debian.org
Thu May 12 01:21:22 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit ca3a6305fd1c60672b21237b3b5ecec049df4aa3
Author: Evert Pot <me at evertpot.com>
Date: Mon Apr 18 15:09:52 2016 +0800
Correctly expanding relative hrefs.
---
lib/DAV/Xml/Element/Sharee.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/DAV/Xml/Element/Sharee.php b/lib/DAV/Xml/Element/Sharee.php
index be76328..dcfd7bd 100644
--- a/lib/DAV/Xml/Element/Sharee.php
+++ b/lib/DAV/Xml/Element/Sharee.php
@@ -4,6 +4,7 @@ namespace Sabre\DAV\Xml\Element;
use Sabre\DAV\Exception\BadRequest;
use Sabre\DAV\Sharing\Plugin;
+use Sabre\DAV\Xml\Property\Href;
use Sabre\DAV\Xml\Property\ShareAccess;
use Sabre\Xml\Deserializer;
use Sabre\Xml\Element;
@@ -119,8 +120,9 @@ class Sharee implements Element {
*/
function xmlSerialize(Writer $writer) {
+
$writer->write([
- '{DAV:}href' => $this->href,
+ new Href($this->href),
'{DAV:}prop' => $this->properties,
'{DAV:}share-access' => new ShareAccess($this->access),
]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list