浏览代码

* Fix by Michalis Kamburelis for bug #28496

git-svn-id: trunk@31305 -
michael 10 年之前
父节点
当前提交
437aab34de
共有 1 个文件被更改,包括 1 次插入1 次删除
  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