Merged revision(s) 51096 #13baa543c5 from trunk:

LHelp: Fix incorrect processing of internal links specified by absolute paths (issue #29267)
........

git-svn-id: branches/fixes_1_6@51150 -
This commit is contained in:
maxim 2016-01-03 12:36:44 +00:00
parent 36a750c573
commit 8372e32c07

View File

@ -187,7 +187,9 @@ begin
if Pos('ms-its:', NewURL) = 1 then begin
if Pos('#', NewURL) = 0 then
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);
end;
@ -230,6 +232,7 @@ var
begin
Result := TStringList.Create;
Result.Delimiter := '/';
Result.StrictDelimiter := true;
Result.DelimitedText := ADir;
LastName := ExtractFileName(ADir);