Contacts: Allow '/' in property name

Kaddressbook uses this in the messaging property. This is allowed in Version 2 of the vcard specification. Version 3 of the specification doesn't allow this any more but be lenient in what we accept.
remotes/origin/stable
Bart Visscher 15 years ago
parent 1d312cf070
commit 2d391298fb
  1. 2
      3rdparty/Sabre/VObject/Reader.php

@ -117,7 +117,7 @@ class Sabre_VObject_Reader {
//$result = preg_match('/(?P<name>[A-Z0-9-]+)(?:;(?P<parameters>^(?<!:):))(.*)$/',$line,$matches);
$token = '[A-Z0-9-\.]+';
$token = '[A-Z0-9-\/\.]+';
$parameters = "(?:;(?P<parameters>([^:^\"]|\"([^\"]*)\")*))?";
$regex = "/^(?P<name>$token)$parameters:(?P<value>.*)$/i";

Loading…
Cancel
Save