aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-03-24 10:58:08 +0100
committerVincent Petry <pvince81@owncloud.com>2016-03-24 10:58:08 +0100
commita355e3abe383ea3fbb955db2efa2d10dc07268e5 (patch)
tree6f026645dee1d7c4b638a43448be4d30f00b537c /lib
parent4b3af9dfe781dc875f3bf94cd31e658ef1d707a9 (diff)
parentcc8c0b6a90be3967dd460c17e1894934016f4e0f (diff)
downloadnextcloud-server-a355e3abe383ea3fbb955db2efa2d10dc07268e5.tar.gz
nextcloud-server-a355e3abe383ea3fbb955db2efa2d10dc07268e5.zip
Merge pull request #23530 from owncloud/fix-shibboleth
Check if request is sent from official ownCloud client
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/http/request.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index 2dc636fcff2..f4cbb6384ba 100644
--- a/lib/private/appframework/http/request.php
+++ b/lib/private/appframework/http/request.php
@@ -59,6 +59,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;