diff options
Diffstat (limited to 'vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php')
-rw-r--r-- | vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php b/vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php index b71ea003d..1ab874077 100644 --- a/vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php +++ b/vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php @@ -14,7 +14,10 @@ namespace Sabre\DAV; * ). Since these are reserved, but don't have a reserved meaning in url, these characters are * kept as-is. * - * @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). + * It was also discovered that versions of the SOGO connector for thunderbird + * has issues with urlencoded colons. + * + * @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/). * @author Evert Pot (http://evertpot.com/) * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License */ @@ -30,7 +33,7 @@ class URLUtil { */ static function encodePath($path) { - return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\)\/])/',function($match) { + return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\)\/:])/',function($match) { return '%'.sprintf('%02x',ord($match[0])); @@ -48,7 +51,7 @@ class URLUtil { */ static function encodePathSegment($pathSegment) { - return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\)])/',function($match) { + return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\):])/',function($match) { return '%'.sprintf('%02x',ord($match[0])); |