Contacts: Apply strip_tags on compound values.

remotes/origin/stable4
Thomas Tanghus 15 years ago
parent 12bcbcdc62
commit 456ada01fa
  1. 1
      apps/contacts/ajax/addproperty.php
  2. 1
      apps/contacts/ajax/saveproperty.php

@ -66,6 +66,7 @@ foreach($current as $item) {
if(is_array($value)) {
ksort($value); // NOTE: Important, otherwise the compound value will be set in the order the fields appear in the form!
$value = array_map('strip_tags', $value);
} else {
$value = strip_tags($value);
}

@ -52,6 +52,7 @@ $checksum = isset($_POST['checksum'])?$_POST['checksum']:null;
// }
if(is_array($value)){ // FIXME: How to strip_tags for compound values?
$value = array_map('strip_tags', $value);
ksort($value); // NOTE: Important, otherwise the compound value will be set in the order the fields appear in the form!
$value = OC_VObject::escapeSemicolons($value);
} else {

Loading…
Cancel
Save