浏览代码

ParseURI: a colon is a valid character in the path or the document part of the URI

Ondrej Pokorny 11 月之前
父节点
当前提交
570fa22daa
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      packages/fcl-base/src/uriparser.pp

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

@@ -252,9 +252,7 @@ begin
       else
       else
         Result.Document := '';
         Result.Document := '';
       break;
       break;
-    end else if s[i] = ':' then
-      break
-    else if i = 1 then
+    end else if i = 1 then
     begin
     begin
       Result.Document :=s;
       Result.Document :=s;
       if Decode then
       if Decode then