mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 20:39:43 +02:00
+ Fixed wrong handling of hostname (again)
This commit is contained in:
parent
9baf7607b4
commit
adc773adcf
@ -194,7 +194,9 @@ begin
|
||||
|
||||
LastValidPos := 0;
|
||||
for i := Length(s) downto 1 do
|
||||
if s[i] = '/' then
|
||||
if (s[i] = '/')
|
||||
and ((I>1) and (S[i-1]<>'/'))
|
||||
and ((I<Length(S)) and (S[I+1]<>'/')) then
|
||||
LastValidPos := i
|
||||
else if s[i] in [':', '@'] then
|
||||
break;
|
||||
@ -245,7 +247,7 @@ begin
|
||||
Result.Password := Copy(s, i + 1, Length(s));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user