mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 03:59:13 +02:00
chmhelp: Add resource protection block to TIpChmDataProvider.BuildURL
git-svn-id: trunk@56129 -
This commit is contained in:
parent
faa58c53b1
commit
11aad71dab
@ -195,6 +195,7 @@ begin
|
||||
end;
|
||||
|
||||
ParentDirs := GetDirsParents(OldURL);
|
||||
try
|
||||
RemoveDirCount := 0;
|
||||
repeat
|
||||
X := Pos('../', fNewURL);
|
||||
@ -223,8 +224,10 @@ begin
|
||||
Delete(Result, X, 1);
|
||||
until X = 0;
|
||||
|
||||
finally
|
||||
ParentDirs.Free;
|
||||
//WriteLn('res = ', Result);
|
||||
end;
|
||||
end;
|
||||
|
||||
function TIpChmDataProvider.GetDirsParents(ADir: String): TStringList;
|
||||
|
Loading…
Reference in New Issue
Block a user