Contacts: Backport XSS fix.

remotes/origin/stable4
Thomas Tanghus 13 years ago
parent 3775c0d8b2
commit 54a3717005
  1. 3
      apps/contacts/lib/vcard.php

@ -188,6 +188,9 @@ class OC_Contacts_VCard{
if($upgrade && in_array($property->name, $stringprops)) {
self::decodeProperty($property);
}
if(in_array($property->name, $stringprops)) {
$property->value = strip_tags($property->value);
}
// Fix format of type parameters.
if($upgrade && in_array($property->name, $typeprops)) {
OCP\Util::writeLog('contacts','OC_Contacts_VCard::updateValuesFromAdd. before: '.$property->serialize(),OCP\Util::DEBUG);

Loading…
Cancel
Save