Browse Source

* Length comparison

Michaël Van Canneyt 2 years ago
parent
commit
b1179dd872
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

@@ -300,7 +300,7 @@ begin
     SetLength(Authority, i - 1);
 
     // Extract username and password
-    if Authority <> '' then
+    if Length(Authority)>0 then
     begin
       i := Pos(':', Authority);
       if i = 0 then