From: KMX Date: Tue, 28 Jul 2009 15:26:44 +0000 (+0000) Subject: C::Engine::FastCGI (_fix_env) - Microsoft IIS on Windows 2008 R2 has version string... X-Git-Tag: 5.80008~50 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=63630a22d1abb7c3de7afa2e5709b9eca894c40c;hp=18a9655ceb550a3d474cdb638037c4e8a05c6970 C::Engine::FastCGI (_fix_env) - Microsoft IIS on Windows 2008 R2 has version string "IIS/7.5" that was not supported; this patch makes test condition more general, accepting versions from IIS/6.0 to IIS/9.9 (should be enough for a while) --- diff --git a/lib/Catalyst/Engine/FastCGI.pm b/lib/Catalyst/Engine/FastCGI.pm index 125a762..280fee1 100644 --- a/lib/Catalyst/Engine/FastCGI.pm +++ b/lib/Catalyst/Engine/FastCGI.pm @@ -235,7 +235,7 @@ sub _fix_env $env->{PATH_INFO} ||= delete $env->{SCRIPT_NAME}; } # Fix the environment variables PATH_INFO and SCRIPT_NAME when running under IIS - elsif ( $env->{SERVER_SOFTWARE} =~ /IIS\/[67].0/ ) { + elsif ( $env->{SERVER_SOFTWARE} =~ /IIS\/[6-9]\.[0-9]/ ) { my @script_name = split(m!/!, $env->{PATH_INFO}); my @path_translated = split(m!/|\\\\?!, $env->{PATH_TRANSLATED}); my @path_info;