소스 검색

* 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