Browse Source

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

Kevin Jesshope 3 năm trước cách đây
mục cha
commit
2faaffac58
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);