mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 14:01:34 -05:00
Contacts: Apply strip_tags on compound values.
This commit is contained in:
parent
12bcbcdc62
commit
456ada01fa
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue