mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 01:39:28 +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
|
else
|
||||||
begin
|
begin
|
||||||
D:=ADirectory;
|
D:=ADirectory;
|
||||||
if Copy(D,1,1)<>'/' then
|
if (D<>ExpandFileName(D)) then
|
||||||
D:=BaseDir+D;
|
D:=BaseDir+D;
|
||||||
if not DirectoryExists(D) then
|
if not DirectoryExists(D) then
|
||||||
Raise HTTPError.CreateFmt(SErrInvalidDirectory,[D]);
|
Raise HTTPError.CreateFmt(SErrInvalidDirectory,[D]);
|
||||||
|
Loading…
Reference in New Issue
Block a user