aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-20 01:15:06 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-20 01:20:17 +0200
commit9a2511fe9bd5716c49bc8a28cbea690f9bb0fe97 (patch)
tree1db5b735baeec1bbaf6f5156f9d93cbb66f3bd1e /lib
parentd2887b76bc8b7311b0d4347cfe956dd50ba8cceb (diff)
downloadnextcloud-server-9a2511fe9bd5716c49bc8a28cbea690f9bb0fe97.tar.gz
nextcloud-server-9a2511fe9bd5716c49bc8a28cbea690f9bb0fe97.zip
Don't check for Same-Site cookie on Chrome Android
Chrome on Android has a bug that it doesn't sent cookies with the same-site attribute for the download manager. To work around that all same-site cookies get deleted and recreated directly. Awesome! FIXME: Remove once Chrome 54 is deployed to end-users @see https://github.com/nextcloud/server/pull/1454
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index b2e45595a3e..7d86245818d 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -520,6 +520,14 @@ class OC {
return;
}
+ // Chrome on Android has a bug that it doesn't sent cookies with the
+ // same-site attribute for the download manager. To work around that
+ // all same-site cookies get deleted and recreated directly. Awesome!
+ // FIXME: Remove once Chrome 54 is deployed to end-users
+ // @see https://github.com/nextcloud/server/pull/1454
+ if($request->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_ANDROID_MOBILE_CHROME])) {
+ return;
+ }
if(count($_COOKIE) > 0) {
$requestUri = $request->getScriptName();