diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-11-30 20:58:27 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-11-30 20:58:27 +0100 |
commit | 2d391298fb048f3fc36a52859c212344f04b6a35 (patch) | |
tree | b7536ed24502abfc9ffcbb38748799580b148c11 /3rdparty | |
parent | 1d312cf070d809ab1b09b978dfa9d918ffe2c253 (diff) | |
download | nextcloud-server-2d391298fb048f3fc36a52859c212344f04b6a35.tar.gz nextcloud-server-2d391298fb048f3fc36a52859c212344f04b6a35.zip |
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.
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/Sabre/VObject/Reader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/Sabre/VObject/Reader.php b/3rdparty/Sabre/VObject/Reader.php index 5ed7882ac91..7d1c282838e 100644 --- a/3rdparty/Sabre/VObject/Reader.php +++ b/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"; |