File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ private static function printUpgradePage(\OC\SystemConfig $systemConfig): void {
411411 public static function initSession (): void {
412412 $ request = Server::get (IRequest::class);
413413 $ isDavRequest = strpos ($ request ->getRequestUri (), '/remote.php/dav ' ) === 0 || strpos ($ request ->getRequestUri (), '/remote.php/webdav ' ) === 0 ;
414- if ($ request ->getHeader ('Authorization ' ) !== '' && is_null ($ request ->getCookie ('cookie_test ' )) && $ isDavRequest ) {
414+ if ($ request ->getHeader ('Authorization ' ) !== '' && is_null ($ request ->getCookie ('cookie_test ' )) && $ isDavRequest && ! isset ( $ _COOKIE [ ' nc_session_id ' ]) ) {
415415 setcookie ('cookie_test ' , 'test ' , time () + 3600 );
416416 // Do not initialize the session if a request is authenticated directly
417417 // unless there is a session cookie already sent along
You can’t perform that action at this time.
0 commit comments