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

Revert "Contacts: Properly escape commas and semi-colons."

This reverts commit 4176befe05ee72d472ebbbb3a5b424db185809c6.
This commit is contained in:
Thomas Tanghus 2013-03-14 15:52:43 +01:00
parent c0a474dd33
commit bfb3a4e07d

View File

@ -74,7 +74,6 @@ $checksum = isset($_POST['checksum'])?$_POST['checksum']:null;
debug('value: ' . print_r($value, 1));
$multi_properties = array('EMAIL', 'TEL', 'IMPP', 'ADR', 'URL');
$string_properties = array('FN', 'NICKNAME', 'NOTE', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL');
if(!$name) {
bailOut(App::$l10n->t('element name is not set.'));
@ -201,9 +200,6 @@ if(!$value) {
unset($vcard->{$name});
}
} else {
if(in_array($name, $string_properties)) {
$value = strtr($value, array(',' => '\,', ';' => '\;'));
}
/* setting value */
switch($element) {
case 'BDAY':