[Tickets #14673] Handling bad VCARD format from the iPhone.

noreply at bugs.horde.org noreply at bugs.horde.org
Sat Jul 29 05:30:28 UTC 2017


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14673
------------------------------------------------------------------------------
  Ticket             | 14673
  Created By         | budaycsaba at gmail.com
  Summary            | Handling bad VCARD format from the iPhone.
  Queue              | Turba
  Version            | 4.2.18
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


budaycsaba at gmail.com (2017-07-29 05:30) wrote:

Configuration: horde and iOS contact are kept in sync using with CardDAV.
Horde is installed from the debian distribution (debian stretch).

When adding contacts, the user may not select any "type" field for the  
telephone number, and there is no default. This breaks the VCARD  
format, see the attachment.

The problematic line is the following:
TEL;type=pref:+36303770746

This snipplet fixed this for me, by rewriting the "PREF" field to "CELL".
This may not be the most elegant fix, bit it works for me.

2307d2306
<                         $no_more_fields=true;
2311,2313d2309
<                         if ($no_more_fields && $type==='PREF') {
<                             $type='CELL';
<                         }




budaycsaba at gmail.com (2017-07-29 05:30) uploaded: Hzik Zgg.vcf

https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=Hzik%20Zgg.vcf&ticket=14673&fn=%2FHzik%20Zgg.vcf





More information about the bugs mailing list