From f069a27e3b573ad602c92c2c47a56c96f2895ae8 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 21 May 2018 22:30:10 -0400 Subject: fix regression --- Bugzilla/CGI.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index b38c248a4..2b8641d56 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -714,6 +714,18 @@ sub send_cookie { push(@{$self->{'Bugzilla_cookie_list'}}, $self->cookie(%paramhash)); } +# Cookies are removed by setting an expiry date in the past. +# This method is a send_cookie wrapper doing exactly this. +sub remove_cookie { + my $self = shift; + my ($cookiename) = (@_); + + # Expire the cookie, giving a non-empty dummy value (bug 268146). + $self->send_cookie('-name' => $cookiename, + '-expires' => 'Tue, 15-Sep-1998 21:49:00 GMT', + '-value' => 'X'); +} + # To avoid infinite redirection recursion, track when we're within a redirect # request. sub redirect { -- cgit v1.2.3-24-g4f1b