+ Fixed parsing of URIs without paths.

This commit is contained in:
michael 2003-05-17 21:48:52 +00:00
parent c8a141e894
commit 0067cfc9a6

View File

@ -198,7 +198,9 @@ begin
else if s[i] in [':', '@'] then
break;
if LastValidPos > 0 then
if (LastValidPos > 0) and
(Length(S)>LastValidPos) and
(S[LastValidPos+1]<>'/') then
begin
Result.Path := Unescape(Copy(s, LastValidPos, Length(s)));
s := Copy(s, 1, LastValidPos - 1);