Przeglądaj źródła

* 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 5 lat temu
rodzic
commit
0067e6663c
1 zmienionych plików z 1 dodań i 1 usunięć
  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]);