diff options
author | Mikael Saarinen <mikaels@iki.fi> | 2021-06-12 11:15:51 +0300 |
---|---|---|
committer | Mikael Saarinen <mikaels@iki.fi> | 2021-06-23 09:50:45 +0300 |
commit | 14c33bb2e9fc32594fdbcffa1edde1f1e15665cc (patch) | |
tree | 44cb72c309b4e71ca1cefd5f89cfec580df0eb82 /apps/dav/lib/CalDAV | |
parent | e065324e9b56b766e36cd9d31771126e0e0bfb62 (diff) | |
download | nextcloud-server-14c33bb2e9fc32594fdbcffa1edde1f1e15665cc.tar.gz nextcloud-server-14c33bb2e9fc32594fdbcffa1edde1f1e15665cc.zip |
Add regex to match Windows 10 calendar user-agent
* Match first part of the Windows 10 calendar user-agent
* Exposes subscribed calendars for Windows 10 calendar
* Update unit test
Signed-off-by: Mikael Saarinen <mikaels@iki.fi>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/WebcalCaching/Plugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php b/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php index 13aef7ed227..3dd8a7c81e5 100644 --- a/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php +++ b/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php @@ -40,9 +40,12 @@ class Plugin extends ServerPlugin { * list of regular expressions for calendar user agents, * that do not support subscriptions on their own * + * /^MSFT-WIN-3/ - Windows 10 Calendar * @var string[] */ - public const ENABLE_FOR_CLIENTS = []; + public const ENABLE_FOR_CLIENTS = [ + "/^MSFT-WIN-3/" + ]; /** * @var bool |