summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-05-22 04:30:10 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-28 22:41:58 +0200
commitf069a27e3b573ad602c92c2c47a56c96f2895ae8 (patch)
tree74964908a2f4fdb48c3975be0df6beb4c031fbd9
parent86b4aef33b23e5c2a412938fa76ff4d6d685e649 (diff)
downloadbugzilla-f069a27e3b573ad602c92c2c47a56c96f2895ae8.tar.gz
bugzilla-f069a27e3b573ad602c92c2c47a56c96f2895ae8.tar.xz
fix regression
-rw-r--r--Bugzilla/CGI.pm12
1 files changed, 12 insertions, 0 deletions
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 {