浏览代码

* fix for #22664 from Benito Zander. pos() instead of comparetext was used.

git-svn-id: trunk@22143 -
marco 13 年之前
父节点
当前提交
811b65da87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-web/src/base/cgiapp.pp

+ 1 - 1
packages/fcl-web/src/base/cgiapp.pp

@@ -686,7 +686,7 @@ begin
     Finally
       I.Free;
     end;
-    if Pos(ContentType,'MULTIPART/FORM-DATA')=0 then
+    if CompareText(ContentType,'MULTIPART/FORM-DATA')=0 then
       ProcessMultiPart(M,ContentType)
     else if CompareText(ContentType,'APPLICATION/X-WWW-FORM-URLENCODED')=0 then
       ProcessUrlEncoded(M)