6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/11/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7122] Horde imports least-important number from Synthesis
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..___. .. ..__ | |[__ |\ || || \ |__\[___| \||/\||__/
Comment
> Consider the following vcard snippet: > > > > TEL;HOME;VOICE;X-Synthesis-Ref1:(123) 456-7890 > > TEL;WORK;VOICE;X-Synthesis-Ref1:(234) 567-8901 > > TEL;WORK;VOICE;X-Synthesis-Ref2:(345) 678-9012 > > TEL;CELL;VOICE;X-Synthesis-Ref1:(456) 789-0123 > > > > Synthesis has listed the primary work number first. However, Horde > will insert the secondary work number since it's parsed after the > primary number. > > > > This behaviour is likely not specific to Synthesis. > > > > The following (rough) code can be used in > lib/syncml/device/synthesis.php to drop secondary values: > > > > // ... delete X-Synthesis-Ref1 tag > > $content = preg_replace('/;X-Synthesis-Ref1(:|;)/', '\1', $content); > > // ... and remove any other *values* containing X-Synthesis-Ref* > > $content = > preg_replace('/(\r\n|\r|\n).*;X-Synthesis-Ref\d+(:|;).*(\r\n|\r|\n)/', '\1', > $content); > > // ... and finally delete all X-Synthesis-* tags > > $content = preg_replace('/;X-Synthesis-.*(:|;)(.*)/', '\1', $content); > > > > This works for Synthesis (tested with version v3.0.2.22 for Windows > Mobile) but it isn't a comprehensive fix. > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers