diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-24 15:06:00 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-24 15:06:00 +0300 |
commit | 515ebc02b06d370d06d97a4cc0be3773bb117d04 (patch) | |
tree | 3aef2727694d6be22287a4f3dd20b72f9b2481b0 /lib | |
parent | c9eadb7b7753b936558fc322a15cf486f3b759ef (diff) | |
parent | 2139130ec814bb2954d92a0cbeb86a80343eb789 (diff) |
Merge pull request #23539 from owncloud/backport-23530
[stable9] Backport 23530
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/http/request.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php index caddb5a235d..1b08b245f08 100644 --- a/lib/private/appframework/http/request.php +++ b/lib/private/appframework/http/request.php @@ -52,6 +52,9 @@ class Request implements \ArrayAccess, \Countable, IRequest { // Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#'; const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#'; + const USER_AGENT_OWNCLOUD_IOS = '/^Mozilla\/5\.0 \(iOS\) ownCloud\-iOS.*$/'; + const USER_AGENT_OWNCLOUD_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/'; + const USER_AGENT_OWNCLOUD_DESKTOP = '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/'; const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost)$/'; protected $inputStream; |