diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-25 18:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 18:11:16 +0200 |
commit | 2987c141485979c911a9da275c316567442a8190 (patch) | |
tree | adc6dc1d73c79b0ced41cefdd760d5ff3e1957a0 | |
parent | 91631953125a743702cbd6783b7d889721db3bbc (diff) | |
download | bugzilla-2987c141485979c911a9da275c316567442a8190.tar.gz bugzilla-2987c141485979c911a9da275c316567442a8190.tar.xz |
Bug 1456529 - Support SameSite attribute on session cookies
-rw-r--r-- | Bugzilla/CGI.pm | 2 | ||||
-rwxr-xr-x | Makefile.PL | 2 |
2 files changed, 3 insertions, 1 deletions
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', |