CGIWRAP_WORKAROUND — fix Cobalt CGIWrap problem
The variable controls the behavior of the Cobalt CGIwrap problem work-around code. When set, causes the script name to be removed from the URL pathinfo.
Example: Turn on the workaround code
Add the following to interchange.cfg
:
Variable CGIWRAP_WORKAROUND 1
Interchange 5.9.0:
Source: lib/Vend/Dispatch.pm
Line 918 (context shows lines 908-922 in adjust_cgi():883)
$host = $Global::IpQuad == 0 ? 'nobody' : ''; my @ip; @ip = split /\./, $CGI::ip; $CGI::ip = ''; $CGI::ip = join ".", @ip[0 .. ($Global::IpQuad - 1)] if $Global::IpQuad; } # # end AOL fix # Fix Cobalt/CGIwrap problem if($Global::Variable->{CGIWRAP_WORKAROUND}) { $CGI::path_info =~ s!^$CGI::script_name!!; } $CGI::host = $host || $CGI::ip;