Browse Source

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

Kevin Jesshope 2 years ago
parent
commit
cee45ea6fc
1 changed files with 1 additions and 1 deletions
  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);