Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

GForum and CGI.pm

Quote Reply
GForum and CGI.pm
After adding 'use GForum::mod_perl' in startup.pl, all scripts that are running under mod_perl and imports CGI.pm can't use "param" function for reading data transferred by POST method, though $r->content() returns all transferred data.
Quote Reply
Re: [vvf] GForum and CGI.pm In reply to
Hi,

Do you mean CGI.pm or GT::CGI? Are you referring to scripts outside of Gossamer Forum? If you do mean CGI.pm, what version are you using?

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] GForum and CGI.pm In reply to
Yes, I meant CGI.pm ($CGI:: VERSION = '2.752';)

Any script ceases to work with the data of the form, even if it from other virtual host. CGI.pm refuses parsing the transferred data. param('xxx') always return undef.

W2k
Apache 1.3.20
ActiveState perl v5.6.1 build 628
mod_perl 1.26_01-dev from ActiveState

Quote Reply
Re: [vvf] GForum and CGI.pm In reply to
Hi,

Thanks we'll take a look into this. Can you give me some simple steps to reproduce, i.e.:

1. Add use lib '/path/to/forum' and use GForum::mod_perl to your startup file.
2. Restart Apache
3. Run the following script:

#!/usr/bin/perl
use CGI qw/:all/;
print header(), "you entered: ", param('foo');

4. Go to testscript.cgi?foo=test

and it doesn't print out the param?

This will help me track down what is wrong.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] GForum and CGI.pm In reply to
Please reread the first message in this topic.
This error appears only if data is transferred by method POST.

Sorry for inconveniences because of my bad English.