Browse Source

* Assign filename to uploaded file (bug id 18337; Firefox engine allows empty name)

git-svn-id: trunk@17380 -
michael 14 years ago
parent
commit
e2d488aa81
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-web/src/base/httpdefs.pp

+ 2 - 1
packages/fcl-web/src/base/httpdefs.pp

@@ -1270,7 +1270,8 @@ begin
       FI:=TFormItem(L[i]);
       FI.Process;
       If (FI.Name='') then
-        Raise Exception.CreateFmt('Invalid multipart encoding: %s',[FI.Data]);
+        Fi.Name:='DummyFileItem'+IntToStr(i);
+        //Raise Exception.CreateFmt('Invalid multipart encoding: %s',[FI.Data]);
 {$ifdef CGIDEBUG}
       With FI Do
         begin