Skip to content

Commit

Permalink
コマンドライン実行時, Undefined index になるのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Apr 22, 2020
1 parent b14b021 commit 25bb619
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -69,7 +69,7 @@ protected function doRead($sessionId)
return $this->handler->read($sessionId);
}

/**
/**
* {@inheritdoc}
*/
public function updateTimestamp($sessionId, $data)
Expand Down Expand Up @@ -207,6 +207,7 @@ public function getCookieSecure()
*/
private function shouldSendSameSiteNone()
{
return SameSite::handle($_SERVER['HTTP_USER_AGENT']);
$userAgent = array_key_exists('HTTP_USER_AGENT', $_SERVER) ? $_SERVER['HTTP_USER_AGENT'] : null;
return SameSite::handle($userAgent);
}
}

0 comments on commit 25bb619

Please sign in to comment.