mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Contacts: Typo in CardDAV plugin.
This commit is contained in:
parent
604b819014
commit
efad313280
@ -25,7 +25,7 @@
|
|||||||
namespace OCA\Contacts\CardDAV;
|
namespace OCA\Contacts\CardDAV;
|
||||||
|
|
||||||
use Sabre\VObject;
|
use Sabre\VObject;
|
||||||
use OCA\Contacts;
|
use OCA\Contacts\VObject\VCard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class overrides Sabre_CardDAV_Plugin::validateVCard() to be able
|
* This class overrides Sabre_CardDAV_Plugin::validateVCard() to be able
|
||||||
@ -54,7 +54,7 @@ class Plugin extends \Sabre_CardDAV_Plugin {
|
|||||||
$data = \Sabre_DAV_StringUtil::ensureUTF8($data);
|
$data = \Sabre_DAV_StringUtil::ensureUTF8($data);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$vobj = VObject\Reader::read($data, VObject\Reader::OPTION_IGNORE_INVALID_LINE);
|
$vobj = VObject\Reader::read($data, VObject\Reader::OPTION_IGNORE_INVALID_LINES);
|
||||||
} catch (VObject\ParseException $e) {
|
} catch (VObject\ParseException $e) {
|
||||||
throw new \Sabre_DAV_Exception_UnsupportedMediaType('This resource only supports valid vcard data. Parse error: ' . $e->getMessage());
|
throw new \Sabre_DAV_Exception_UnsupportedMediaType('This resource only supports valid vcard data. Parse error: ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user