Name

CGIWRAP_WORKAROUND — fix Cobalt CGIWrap problem

SYNOPSIS

{ 0 | 1 }

DESCRIPTION

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.

VARIABLE TYPE

Global variable

EXAMPLES

Example: Turn on the workaround code

Add the following to interchange.cfg:

Variable CGIWRAP_WORKAROUND 1

NOTES

AVAILABILITY

CGIWRAP_WORKAROUND is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

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;

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!