summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-10 14:24:45 -0600
committerGitHub <noreply@github.com>2017-02-10 14:24:45 -0600
commitabf0606054c2f17b8afe90994fd39f67ff959c6f (patch)
tree9b717572b660e433d7c018c8dbacbdbcba6fed75 /apps/dav/lib/Connector
parentb8f08f15857a65f768a3fb02a3f59353a758c400 (diff)
parent33fb86f68b827692f242107380e4cf3d42f90658 (diff)
downloadnextcloud-server-abf0606054c2f17b8afe90994fd39f67ff959c6f.tar.gz
nextcloud-server-abf0606054c2f17b8afe90994fd39f67ff959c6f.zip
Merge pull request #3430 from nextcloud/fix-ios-client-detection
Fix detection of the new iOS app
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r--apps/dav/lib/Connector/Sabre/Auth.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php
index 95222dafec9..93d8b14d9c9 100644
--- a/apps/dav/lib/Connector/Sabre/Auth.php
+++ b/apps/dav/lib/Connector/Sabre/Auth.php
@@ -32,7 +32,6 @@
namespace OCA\DAV\Connector\Sabre;
use Exception;
-use OC\AppFramework\Http\Request;
use OC\Authentication\Exceptions\PasswordLoginForbiddenException;
use OC\Authentication\TwoFactorAuth\Manager;
use OC\Security\Bruteforce\Throttler;
@@ -177,9 +176,9 @@ class Auth extends AbstractBasic {
// Official ownCloud clients require no checks
if($this->request->isUserAgent([
- Request::USER_AGENT_OWNCLOUD_DESKTOP,
- Request::USER_AGENT_OWNCLOUD_ANDROID,
- Request::USER_AGENT_OWNCLOUD_IOS,
+ IRequest::USER_AGENT_CLIENT_DESKTOP,
+ IRequest::USER_AGENT_CLIENT_ANDROID,
+ IRequest::USER_AGENT_CLIENT_IOS,
])) {
return false;
}