On Sep 21, 2004, at 10:21 AM, Bill Moseley wrote:
> Sorry, I started to install cgi-wrap and got busy with other things.
> Since you have it installed mayb you can print out the environement
> and find something better to use that script_name() that includes the
> /cgi-wrap in the script name -- maybe SCRIPT_URL or REQUEST_URI.
I don't seem to have a SCRIPT_URL here. REQUEST_URI brings back
/cgi-wrap/fsw_test?query=W...
There is a variable, however, called PATH_INFO, which resolves to
/fsw_test
This lets me do the following:
my $form = $q->script_name . $q->path_info;
and
my $fsw_pi = $q->path_info;
$links =~ s|(http://[^\?]+)\?|$1$fsw_pi?|g;
which seem _slightly_ cleaner.
-r
Received on Tue Sep 21 11:05:38 2004