浏览代码

* Patch to extend earlier fix for ISS in CGI to FastCGI (bug ID 30073)

git-svn-id: trunk@34466 -
michael 9 年之前
父节点
当前提交
ccee64600e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/fcl-web/src/base/custfcgi.pp

+ 3 - 0
packages/fcl-web/src/base/custfcgi.pp

@@ -354,6 +354,9 @@ begin
     else
       NameValueList.Add(Name+'='+Value)
     end;
+  // Microsoft-IIS hack. IIS includes the script name in the PATH_INFO
+  if Pos('IIS', ServerSoftware) > 0 then
+    SetHTTPVariable(hvPathInfo,StringReplace(PathInfo, ScriptName, '', [rfReplaceAll, rfIgnoreCase]));
 end;
 
 procedure TFCGIRequest.Log(EventType: TEventType; const Msg: String);