Browse Source

* Merging revisions 47350 from trunk:
------------------------------------------------------------------------
r47350 | michael | 2020-11-08 21:50:23 +0100 (Sun, 08 Nov 2020) | 1 line

* Fix relative path detection (bug id 37727)
------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@47902 -

michael 4 years ago
parent
commit
0067e6663c
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

@@ -124,7 +124,7 @@ begin
   else
     begin
     D:=ADirectory;
-    if Copy(D,1,1)<>'/' then
+    if (D<>ExpandFileName(D)) then
       D:=BaseDir+D;
     if not DirectoryExists(D) then
       Raise HTTPError.CreateFmt(SErrInvalidDirectory,[D]);