1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Fix X-EVOLUTION-FILE-AS escape

Evolution defaults to the form "X-EVOLUTION-FILE-AS:Bloggs\, Joe", and
since Evolution uses this field as the contacts' displayed name, it's
highly visible when ownCloud turns it into
"X-EVOLUTION-FILE-AS:Bloggs\\, Joe".

https://github.com/owncloud/contacts/issues/42#issuecomment-28776546

When interacting with Evolution-Data-Server (which I think MeeGo might
use), the same incorrect escaping applies to X-EVOLUTION-FILE-AS. This
is a non-standard field, but it's highly visible for Evolution users,
since it's used as the default displayed name for contacts there.

https://github.com/owncloud/core/issues/2335#issuecomment-32130820

Bug-Debian: http://bugs.debian.org/735112
This commit is contained in:
Simon McVittie 2014-01-12 19:23:58 +00:00 committed by David Prévot
parent 8b440e4067
commit 16fa2cf807

View File

@ -15,6 +15,7 @@ use \OC\AppFramework\Core\API;
\Sabre\VObject\Property::$classMap['TEL'] = '\OC\VObject\StringProperty';
\Sabre\VObject\Property::$classMap['IMPP'] = '\OC\VObject\StringProperty';
\Sabre\VObject\Property::$classMap['URL'] = '\OC\VObject\StringProperty';
\Sabre\VObject\Property::$classMap['X-EVOLUTION-FILE-AS'] = '\OC\VObject\StringProperty';
\Sabre\VObject\Property::$classMap['N'] = '\OC\VObject\CompoundProperty';
\Sabre\VObject\Property::$classMap['ADR'] = '\OC\VObject\CompoundProperty';
\Sabre\VObject\Property::$classMap['GEO'] = '\OC\VObject\CompoundProperty';