aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-07 18:53:28 +0000
committerlpsolit%gmail.com <>2005-07-07 18:53:28 +0000
commit73270363b7dabda4406b5ab638ead98a951eebeb (patch)
treed3e22918e622ad6c8196d35882a7686c0a5d787e /colchange.cgi
parentBug 289042: Implicit joins should be replaced by explicit joins - installment B (diff)
downloadbugzilla-73270363b7dabda4406b5ab638ead98a951eebeb.tar.gz
bugzilla-73270363b7dabda4406b5ab638ead98a951eebeb.tar.bz2
bugzilla-73270363b7dabda4406b5ab638ead98a951eebeb.zip
Bug 268146: mod_security complain: Invalid cookie format: Cookie value is missing #2 - Patch by Marc Schumann <wurblzap@gmail.com> r=kiko a=justdave
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');