mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 18:47:56 +02:00
* Fix relative path detection (bug id 37727)
git-svn-id: trunk@47350 -
This commit is contained in:
parent
b425c97fce
commit
b90d6e1114
@ -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