bug-gnats
[Top][All Lists]
Advanced

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

Re: gnats redhat install problems


From: Yngve Svendsen
Subject: Re: gnats redhat install problems
Date: Sat, 03 Nov 2001 12:54:40 +0100

At 14:33 02.11.2001 -0800, Frank Gilmurray wrote:
I'm using gnats-3.113.1 and gnatsweb-2.9.2. When I delete a stored query, I get a box with "The document contains no data. Try later...". If I click the OK button and then hit return on the URL, I'm back at the query window and the stored query is gone.

I did a little digging around and found this happens at the last line in 'delete_stored query' (print $q->redirect(-cookie => $expire_cookies, -location => $q->param('return_url'));.

I've modified gnatsweb a bit and I'm wordering if other are seeing the same behavior.

The following patch should fix the problems. It will appear in Gnatsweb 2.9.3 if that is ever released.

Yngve Svendsen
Gnatsweb maintainer


--- gnatsweb.pl Sat Nov  3 12:50:48 2001
+++ gnatsweb-new.pl     Sat Nov  3 12:52:13 2001
@@ -2134,8 +2134,12 @@ sub delete_stored_query

     # Return the user to the page they were viewing when they pressed
     # 'delete stored query'.
-    print $q->redirect(-cookie => $expire_cookies,
-                       -location => $q->param('return_url'));
+    my $return_url = $q->param('return_url') || get_script_name();
+    print $q->header(-Refresh => "0; URL=$return_url",
+                     -cookie => $expire_cookies);
+    # Workaround for MSIE:
+    print "<HTML><HEAD><TITLE></TITLE>"
+ , "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=$return_url\"></HEAD>";
   }
 }




reply via email to

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