mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 01:29:19 +02:00
+ Fixed parsing of URIs without paths.
This commit is contained in:
parent
c8a141e894
commit
0067cfc9a6
@ -198,7 +198,9 @@ begin
|
|||||||
else if s[i] in [':', '@'] then
|
else if s[i] in [':', '@'] then
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if LastValidPos > 0 then
|
if (LastValidPos > 0) and
|
||||||
|
(Length(S)>LastValidPos) and
|
||||||
|
(S[LastValidPos+1]<>'/') then
|
||||||
begin
|
begin
|
||||||
Result.Path := Unescape(Copy(s, LastValidPos, Length(s)));
|
Result.Path := Unescape(Copy(s, LastValidPos, Length(s)));
|
||||||
s := Copy(s, 1, LastValidPos - 1);
|
s := Copy(s, 1, LastValidPos - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user