|
@@ -346,7 +346,7 @@ begin
|
|
if (BaseDir='') then
|
|
if (BaseDir='') then
|
|
BaseDir:=ExtractFilePath(Paramstr(0))
|
|
BaseDir:=ExtractFilePath(Paramstr(0))
|
|
end;
|
|
end;
|
|
- FN:=ExtractRelativepath(BaseDir,aFileName);
|
|
|
|
|
|
+ FN:=ExtractRelativepath(BaseDir,FN);
|
|
Result:=Pos('..'+PathDelim,FN)=0;
|
|
Result:=Pos('..'+PathDelim,FN)=0;
|
|
end;
|
|
end;
|
|
|
|
|