summaryrefslogtreecommitdiffstats
path: root/lib/public/IRequest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-02-27 14:37:32 +0100
committerJoas Schilling <coding@schilljs.com>2018-02-27 14:37:32 +0100
commitf81d4eb060ea15c0c753d094b65eaa2c8c9315a5 (patch)
tree8d0f494efe078639bdc49872c9b58087a5a246a8 /lib/public/IRequest.php
parent640db3d5fed6ca6d274d64842100fa7216ae1d67 (diff)
downloadnextcloud-server-f81d4eb060ea15c0c753d094b65eaa2c8c9315a5.tar.gz
nextcloud-server-f81d4eb060ea15c0c753d094b65eaa2c8c9315a5.zip
Make the Outlook and Thunderbird addons identifyable
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/IRequest.php')
-rw-r--r--lib/public/IRequest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/IRequest.php b/lib/public/IRequest.php
index b3130207111..05948cd480f 100644
--- a/lib/public/IRequest.php
+++ b/lib/public/IRequest.php
@@ -91,6 +91,16 @@ interface IRequest {
const USER_AGENT_TALK_IOS = '/^Mozilla\/5\.0 \(iOS\) Nextcloud\-Talk v.*$/';
/**
+ * @since 13.0.1
+ */
+ const USER_AGENT_OUTLOOK_ADDON = '/^Mozilla\/5\.0 \([A-Za-z ]+\) Nextcloud\-Outlook v.*$/';
+
+ /**
+ * @since 13.0.1
+ */
+ const USER_AGENT_THUNDERBIRD_ADDON = '/^Mozilla\/5\.0 \([A-Za-z ]+\) Nextcloud\-Thunderbird v.*$/';
+
+ /**
* @param string $name
*
* @return string