From: KMX Date: Fri, 29 May 2009 15:32:50 +0000 (+0000) Subject: Engine::FastCGI - Microsoft IIS7 compatibility patch (COOL - it seems that I was... X-Git-Tag: 5.80005~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=98a13b51625140ef0e6a09918fc7b867924a86f3 Engine::FastCGI - Microsoft IIS7 compatibility patch (COOL - it seems that I was the first one who managed CatApp to run as FastCGI on Win2008+IIS7 :) --- diff --git a/lib/Catalyst/Engine/FastCGI.pm b/lib/Catalyst/Engine/FastCGI.pm index 80679cc..6a6c0e7 100644 --- a/lib/Catalyst/Engine/FastCGI.pm +++ b/lib/Catalyst/Engine/FastCGI.pm @@ -234,8 +234,8 @@ sub _fix_env if ( $env->{SERVER_SOFTWARE} =~ /lighttpd/ ) { $env->{PATH_INFO} ||= delete $env->{SCRIPT_NAME}; } - # Fix the environment variables PATH_INFO and SCRIPT_NAME when running under IIS 6.0 - elsif ( $env->{SERVER_SOFTWARE} =~ /IIS\/6.0/ ) { + # Fix the environment variables PATH_INFO and SCRIPT_NAME when running under IIS + elsif ( $env->{SERVER_SOFTWARE} =~ /IIS\/[67].0/ ) { my @script_name = split(m!/!, $env->{PATH_INFO}); my @path_translated = split(m!/|\\\\?!, $env->{PATH_TRANSLATED}); my @path_info;