[rt-users] Removing quotes of previous email.& link error

Rich Lafferty rich+rt at lafferty.ca
Tue Jan 7 14:47:45 EST 2003


John Gedeon <jgedeon at qualcomm.com> wrote on 2003-01-07 14:38:
>   **First is that links to a specific ticket in the rt system do not work 
> if a user is not logged in.

If you're using FastCGI, try this patch.

--- rt2-orig/bin/mason_handler.fcgi	Thu Oct  3 21:12:16 2002
+++ rt2-esmith/bin/mason_handler.fcgi	Thu Oct  3 22:03:44 2002
@@ -127,6 +127,15 @@
     
     $HTML::Mason::Commands::ContentType = 'text/html';
         
+    # CGI::param does not include query string in POST; let's
+    # keep it all in the same place like mod_perl does.
+    # This stanza is *not* from ApacheHandler.pm.
+    if ($cgi->request_method eq 'POST') {
+        foreach my $key ( $cgi->url_param ) {
+	    $cgi->param($key, $cgi->url_param($key)) unless $cgi->param($key);
+	}
+    }
+
     # This routine comes from ApacheHandler.pm:
     my (%args, $cookie);
     foreach my $key ( $cgi->param ) {


Cheers,

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
 http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
rich at lafferty.ca -----------+-----------------------------------------------



More information about the rt-users mailing list