소스 검색

* Correct PATH_INFO for IIS, patch by Marcos Douglas (bug ID 30073)

git-svn-id: trunk@33576 -
michael 9 년 전
부모
커밋
5c2f941c32
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/fcl-web/src/base/custcgi.pp

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

@@ -373,6 +373,9 @@ begin
         end;
       end;
     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]));
   R:=UpCase(Method);
   if (R='POST') or (R='PUT') or (ContentLength>0) then
     ReadContent;