Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-19 18:32:32 +0400
committerThomas Tanghus <thomas@tanghus.net>2012-08-19 18:32:32 +0400
commit4946e23bdc8e784568a707ad37d66957f5d88867 (patch)
treec24ceace355a0215c18d278fed52812aa2d081f2 /apps/contacts
parenta4e840f4f1017a469239dfaed95abbfc63fa31dd (diff)
Strip slashes from commas and semi-colons.
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/lib/vcard.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php
index 91ac89f5535..81ae689d9a2 100644
--- a/apps/contacts/lib/vcard.php
+++ b/apps/contacts/lib/vcard.php
@@ -552,6 +552,9 @@ class OC_Contacts_VCard{
}
}
}
+ if(is_string($value)) {
+ $value = strtr($value, array('\,' => ',', '\;' => ';'));
+ }
$temp = array(
'name' => $property->name,
'value' => $value,