瀏覽代碼

The test for '' after getting the location into BaseDir should test BaseDir not BaseURL.

Kevin Jesshope 3 年之前
父節點
當前提交
2faaffac58
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-web/src/base/fpwebfile.pp

+ 1 - 1
packages/fcl-web/src/base/fpwebfile.pp

@@ -343,7 +343,7 @@ begin
   else
     begin
     BaseDir:=Locations.Values[BaseURL];
-    if (BaseURL='') then
+    if (BaseDir='') then
       BaseDir:=ExtractFilePath(Paramstr(0))
     end;
   FN:=ExtractRelativepath(BaseDir,aFileName);