Skip to content

Commit

Permalink
コマンドライン実行時, Undefined index になるのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Apr 21, 2020
1 parent b14b021 commit 276f3df
Showing 1 changed file with 2 additions and 1 deletion.
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 276f3df

Please sign in to comment.