Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117798830
D5589.1775264745.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
751 B
Referenced Files
None
Subscribers
None
D5589.1775264745.diff
View Options
diff --git a/src/app/Backends/DAV/Vcard.php b/src/app/Backends/DAV/Vcard.php
--- a/src/app/Backends/DAV/Vcard.php
+++ b/src/app/Backends/DAV/Vcard.php
@@ -6,6 +6,7 @@
use Sabre\VObject\Property;
use Sabre\VObject\Reader;
use Sabre\VObject\Writer;
+use Sabre\VObject\Document;
class Vcard extends CommonObject
{
@@ -125,10 +126,9 @@
public function __toString()
{
if (!$this->vobject) {
- // TODO we currently can only serialize a message back that we just read
throw new \Exception("Writing from properties is not implemented");
}
-
- return Writer::write($this->vobject);
+ $vcard = $this->vobject->convert(Document::VCARD40);
+ return Writer::write($vcard);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 1:05 AM (1 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827299
Default Alt Text
D5589.1775264745.diff (751 B)
Attached To
Mode
D5589: Make sure we migrate to vcard v4
Attached
Detach File
Event Timeline