Browse Source

* Fix by Michalis Kamburelis for bug #28496

git-svn-id: trunk@31305 -
michael 10 years ago
parent
commit
437aab34de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-base/src/uriparser.pp

+ 1 - 1
packages/fcl-base/src/uriparser.pp

@@ -266,7 +266,7 @@ begin
   // Extract the port number
 
   i := LastDelimiter(':@', Authority);
-  if (i > 0) and (Authority[i] = ':') then
+  if (i > 0) and (i < Length(Authority)) and (Authority[i] = ':') then
   begin
     PortValid := true;
     for j:=i+1 to Length(Authority) do