diff options
author | lpsolit%gmail.com <> | 2005-07-07 18:53:28 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-07 18:53:28 +0000 |
commit | 73270363b7dabda4406b5ab638ead98a951eebeb (patch) | |
tree | d3e22918e622ad6c8196d35882a7686c0a5d787e /colchange.cgi | |
parent | Bug 289042: Implicit joins should be replaced by explicit joins - installment B (diff) | |
download | bugzilla-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-x | colchange.cgi | 13 |
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'); |