* CalDAV/Calendar: Lightning 68 no longer allowed to accept/reject invitations

Caused by calendar-user-address-set in principal had url encoded @ in email
--> now using a minimal url-encoding for Lightning, to not encode @
This commit is contained in:
Ralf Becker 2019-11-11 18:01:38 +01:00
parent 7527dfb300
commit c768c9cbf7

View File

@ -2706,6 +2706,19 @@ class HTTP_WebDAV_Server
*/
public static function _urlencode($url)
{
// Thunderbird Lightning 68+ does not recognice participants,
// if EMail in principal (calendar-user-address-set) is encoded
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Lightning') !== false)
{
return strtr($url, array(
' ' => '%20',
'%' => '%25',
'&' => '%26',
'<' => '%3C',
'>' => '%3E',
'+' => '%2B',
));
}
return strtr(rawurlencode($url),array(
'%2F' => '/',
'%3A' => ':',