[Jifty-commit] r3941 - jifty/trunk/lib/Jifty/Script
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Aug 23 10:31:11 EDT 2007
Author: clkao
Date: Thu Aug 23 10:31:08 2007
New Revision: 3941
Modified:
jifty/trunk/lib/Jifty/Script/FastCGI.pm
Log:
respect initial PATH in env under fastcgi.
Modified: jifty/trunk/lib/Jifty/Script/FastCGI.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Script/FastCGI.pm (original)
+++ jifty/trunk/lib/Jifty/Script/FastCGI.pm Thu Aug 23 10:31:08 2007
@@ -90,11 +90,13 @@
my $conf = Jifty->config->framework('Web')->{'FastCGI'} || {};
$self->{maxrequests} ||= $conf->{MaxRequests};
+ my $PATH = $ENV{'PATH'} || '/bin:/usr/bin';
+
my $requests = 0;
while ( my $cgi = CGI::Fast->new ) {
# the whole point of fastcgi requires the env to get reset here..
# So we must squash it again
- $ENV{'PATH'} = '/bin:/usr/bin';
+ $ENV{'PATH'} = $PATH;
$ENV{'SHELL'} = '/bin/sh' if defined $ENV{'SHELL'};
$ENV{'PATH_INFO'} = $ENV{'SCRIPT_NAME'}
if $ENV{'SERVER_SOFTWARE'} =~ /^lighttpd\b/;
More information about the Jifty-commit
mailing list