]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: Allow '/' in property name
authorBart Visscher <bartv@thisnet.nl>
Wed, 30 Nov 2011 19:58:27 +0000 (20:58 +0100)
committerBart Visscher <bartv@thisnet.nl>
Wed, 30 Nov 2011 19:58:27 +0000 (20:58 +0100)
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.

3rdparty/Sabre/VObject/Reader.php

index 5ed7882ac91fabee3f8fc7607293736b112d06eb..7d1c282838e84e09cccaa4e57f540537e5f3b74d 100644 (file)
@@ -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";