From: Dylan William Hardison Date: Wed, 25 Apr 2018 16:11:16 +0000 (-0400) Subject: Bug 1456529 - Support SameSite attribute on session cookies X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2987c141485979c911a9da275c316567442a8190;p=thirdparty%2Fbugzilla.git Bug 1456529 - Support SameSite attribute on session cookies --- diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 6e48a2355..9e8ba6c09 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -687,6 +687,8 @@ sub send_cookie { $paramhash{'-secure'} = 1 if lc( $uri->scheme ) eq 'https'; + $paramhash{'-samesite'} = 'Lax'; + push(@{$self->{'Bugzilla_cookie_list'}}, $self->cookie(%paramhash)); } diff --git a/Makefile.PL b/Makefile.PL index 4cea5b066..96e340b4f 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -34,7 +34,7 @@ BEGIN { # PREREQ_PM my %requires = ( 'Algorithm::BloomFilter' => '0.02', - 'CGI' => '3.51', + 'CGI' => '4.31', 'CPAN::Meta::Prereqs' => '2.132830', 'CPAN::Meta::Requirements' => '2.121', 'Class::XSAccessor' => '1.18',