mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 21:48:35 +02:00
* 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:
parent
3f5b72806b
commit
0067e6663c
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user