summaryrefslogtreecommitdiffstats
path: root/colchange.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-xcolchange.cgi13
1 files changed, 9 insertions, 4 deletions
diff --git a/colchange.cgi b/colchange.cgi
index 11caca423..235da6a01 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -97,7 +97,7 @@ if (defined $cgi->param('rememberedquery')) {
}
}
if (defined $cgi->param('splitheader')) {
- $splitheader = $cgi->param('splitheader');
+ $splitheader = $cgi->param('splitheader')? 1: 0;
}
}
my $list = join(" ", @collist);
@@ -106,9 +106,14 @@ if (defined $cgi->param('rememberedquery')) {
$cgi->send_cookie(-name => 'COLUMNLIST',
-value => $list,
-expires => 'Fri, 01-Jan-2038 00:00:00 GMT');
- $cgi->send_cookie(-name => 'SPLITHEADER',
- -value => $cgi->param('splitheader'),
- -expires => 'Fri, 01-Jan-2038 00:00:00 GMT');
+ if ($splitheader) {
+ $cgi->send_cookie(-name => 'SPLITHEADER',
+ -value => $splitheader,
+ -expires => 'Fri, 01-Jan-2038 00:00:00 GMT');
+ }
+ else {
+ $cgi->remove_cookie('SPLITHEADER');
+ }
$vars->{'message'} = "change_columns";
$vars->{'redirect_url'} = "buglist.cgi?".$cgi->param('rememberedquery');