mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 07:40:08 +02:00
LHelp: Fix incorrect processing of internal links specified by absolute paths (issue #29267)
git-svn-id: trunk@51096 -
This commit is contained in:
parent
9effa4e621
commit
13baa543c5
@ -187,7 +187,9 @@ begin
|
|||||||
if Pos('ms-its:', NewURL) = 1 then begin
|
if Pos('ms-its:', NewURL) = 1 then begin
|
||||||
if Pos('#', NewURL) = 0 then
|
if Pos('#', NewURL) = 0 then
|
||||||
exit;
|
exit;
|
||||||
X := Pos('::', fNewURL);
|
X := Pos('::', NewURL);
|
||||||
|
if NewURL[X+2] = '/' then // NewURL is complete and absolute --> nothing to do
|
||||||
|
exit;
|
||||||
fNewURL := Copy(fNewURL, X+3, MaxInt);
|
fNewURL := Copy(fNewURL, X+3, MaxInt);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -230,6 +232,7 @@ var
|
|||||||
begin
|
begin
|
||||||
Result := TStringList.Create;
|
Result := TStringList.Create;
|
||||||
Result.Delimiter := '/';
|
Result.Delimiter := '/';
|
||||||
|
Result.StrictDelimiter := true;
|
||||||
Result.DelimitedText := ADir;
|
Result.DelimitedText := ADir;
|
||||||
|
|
||||||
LastName := ExtractFileName(ADir);
|
LastName := ExtractFileName(ADir);
|
||||||
|
Loading…
Reference in New Issue
Block a user