aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-07-08 10:39:19 +0000
committermkanat%kerio.com <>2005-07-08 10:39:19 +0000
commitcf64b9f38956ebaa7742fec630c0ca41b1c15a3d (patch)
treed8c9eda0365a372a8131d824e0b088fb0ee81f7b /colchange.cgi
parentBug 292768: [PostgreSQL] COALESCE requires both arguments to be of similar types (diff)
downloadbugzilla-cf64b9f38956ebaa7742fec630c0ca41b1c15a3d.tar.gz
bugzilla-cf64b9f38956ebaa7742fec630c0ca41b1c15a3d.tar.bz2
bugzilla-cf64b9f38956ebaa7742fec630c0ca41b1c15a3d.zip
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 'colchange.cgi')
-rwxr-xr-xcolchange.cgi11
1 files changed, 8 insertions, 3 deletions
diff --git a/colchange.cgi b/colchange.cgi
index 235da6a01..30103406f 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -103,9 +103,14 @@ if (defined $cgi->param('rememberedquery')) {
my $list = join(" ", @collist);
my $urlbase = Param("urlbase");
- $cgi->send_cookie(-name => 'COLUMNLIST',
- -value => $list,
- -expires => 'Fri, 01-Jan-2038 00:00:00 GMT');
+ if ($list) {
+ $cgi->send_cookie(-name => 'COLUMNLIST',
+ -value => $list,
+ -expires => 'Fri, 01-Jan-2038 00:00:00 GMT');
+ }
+ else {
+ $cgi->remove_cookie('COLUMNLIST');
+ }
if ($splitheader) {
$cgi->send_cookie(-name => 'SPLITHEADER',
-value => $splitheader,