mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:39:26 +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
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user