[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnatsweb/770: problem with duplicated "cmd" CGI variable. [PATCH]

From: Stephane Chazelas
Subject: gnatsweb/770: problem with duplicated "cmd" CGI variable. [PATCH]
Date: Fri, 16 Nov 2007 14:56:19 +0000
User-agent: Mutt/1.5.16 (2007-09-19)


I've submitted a new PR at for that
issue. Please see
for details.

However, it seems that submissions to
address@hidden don't work anymore, so that I can't
add information to that PR.

Hence this email to this list.

Regarding that PR, here is a patch that fixes it for me. Not
very neat as it relies a bit on the CGI perl module internals
but short and effective:

---    2003-07-29 13:24:22.000000000 +0100
+++ 2007-11-16 14:30:32.000000000 +0000
@@ -2579,8 +2579,6 @@ sub store_query
-  # Don't save certain params.
-  $q->delete('cmd');
   my $query_string = $q->query_string();
   # strip empty params out of $query_string.  in a gnats db with many
@@ -4148,6 +4146,9 @@ sub main
   $script_name = $q->script_name;
   my $cmd = $q->param('cmd') || ''; # avoid perl -w warning
+  $q->delete('cmd');
+  $ENV{'REQUEST_URI'} = $q->url(-absolute=>1,-query=>1);
   ### Cookie-related code must happen before we print the HTML header.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]