[rt-users] link does not work when sent as email
Rich Lafferty
rich+rt at lafferty.ca
Thu Oct 3 22:12:52 EDT 2002
On Thu, Oct 03, 2002 at 08:44:03PM -0400, Rich Lafferty <rich+rt at lafferty.ca> wrote:
> On Thu, Oct 03, 2002 at 05:04:30PM -0400, Dajani, Nader (TAG.GTS) <NDajani at exchange.ml.com> wrote:
> >
> >
> > It seems like this is only an issue if you use fastcgi instead of
> > mod_perl. I have a separate box running mod_perl and it is ok, but
> > the issue is with the one using fastcgi.
>
> Oh, good catch. *rolls up his sleeves*
Thanks for pointing out the fastcgi part -- it was a straightforward
fix. Against 2.0.14:
-------8<------- cut here -------8<-------
--- 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,14 @@
$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.
+ 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 ) {
-------8<------- cut here -------8<-------
(Yes, we could've handled params and url_params all at once, but
then that routine wouldn't come from ApacheHandler.pm anymore.)
-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