Contacts: Apply strip_tags on compound values.

This commit is contained in:
Thomas Tanghus 2012-02-20 14:36:21 +01:00
parent 12bcbcdc62
commit 456ada01fa
2 changed files with 2 additions and 0 deletions

View file

@ -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);
}

View file

@ -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 {