summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-07-08 12:39:19 +0200
committermkanat%kerio.com <>2005-07-08 12:39:19 +0200
commitcf64b9f38956ebaa7742fec630c0ca41b1c15a3d (patch)
treed8c9eda0365a372a8131d824e0b088fb0ee81f7b /buglist.cgi
parentd3bc972289d244e2f116e0d25f8d14e59139be09 (diff)
downloadbugzilla-cf64b9f38956ebaa7742fec630c0ca41b1c15a3d.tar.gz
bugzilla-cf64b9f38956ebaa7742fec630c0ca41b1c15a3d.tar.xz
Bug 300006: "cookies need value" error code when a query returns an empty result.
Patch By Marc Schumann <wurblzap@gmail.com> r=glob, a=justdave
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index edacd836e..4768843de 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1013,7 +1013,10 @@ if ($format->{'extension'} eq "html") {
}
my $bugids = join(":", @bugidlist);
# See also Bug 111999
- if (length($bugids) < 4000) {
+ if (length($bugids) == 0) {
+ $cgi->remove_cookie('BUGLIST');
+ }
+ elsif (length($bugids) < 4000) {
$cgi->send_cookie(-name => 'BUGLIST',
-value => $bugids,
-expires => 'Fri, 01-Jan-2038 00:00:00 GMT');