diff options
author | lpsolit%gmail.com <> | 2005-07-07 20:53:28 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-07 20:53:28 +0200 |
commit | 73270363b7dabda4406b5ab638ead98a951eebeb (patch) | |
tree | d3e22918e622ad6c8196d35882a7686c0a5d787e /colchange.cgi | |
parent | 8ef93208df4b0c83acb4d24772b7af062d36ec78 (diff) | |
download | bugzilla-73270363b7dabda4406b5ab638ead98a951eebeb.tar.gz bugzilla-73270363b7dabda4406b5ab638ead98a951eebeb.tar.xz |
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'); |