* 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 -
This commit is contained in:
michael 2020-12-30 13:06:24 +00:00
parent 3f5b72806b
commit 0067e6663c

View File

@ -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]);