mirror of
https://github.com/nextcloud/server.git
synced 2024-08-09 14:13:00 +02:00
Merge pull request #1454 from nextcloud/morris
Don't check Same-Site attribute for mobile chrome
This commit is contained in:
commit
09e1218df9
@ -520,6 +520,14 @@ class OC {
|
|||||||
return;
|
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) {
|
if(count($_COOKIE) > 0) {
|
||||||
$requestUri = $request->getScriptName();
|
$requestUri = $request->getScriptName();
|
||||||
|
Loading…
Reference in New Issue
Block a user