diff options
author | Thomas Willingham <founder@kakste.com> | 2014-04-12 18:13:37 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2014-04-12 18:13:37 +0100 |
commit | cdc8454cf112006e4199b6221bcaa3c3a509b564 (patch) | |
tree | 267293b7f5536bda899324af8913549baf4c4c72 /vendor/sabre/dav/lib/Sabre/DAV/URLUtil.php | |
parent | 2fdcd0c27eac389709f48d6b40723e153c1492e6 (diff) | |
download | volse-hubzilla-cdc8454cf112006e4199b6221bcaa3c3a509b564.tar.gz volse-hubzilla-cdc8454cf112006e4199b6221bcaa3c3a509b564.tar.bz2 volse-hubzilla-cdc8454cf112006e4199b6221bcaa3c3a509b564.zip |
Update sabre
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])); |