bugcgicc - Bugs: bug #40329, Wrong separator in...

 
 

bug #40329: Wrong separator in multipart/form-data

Submitter:  eeriedoy <eeriedoy>
Submitted:  Mon 21 Oct 2013 12:05:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  sebdiaz
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Oct 2013 12:05:31 PM UTC, original submission:  

If header like below,
"Content-Type: multipart/form-data; boundary=XXXx; charset=utf8"

separator is "XXXx; charset=utf8".

Cgicc.cpp:406
// File upload type = multipart/form-data
  else if(stringsAreEqual(multipart_type, content_type,
              multipart_type.length())){

    // Find out what the separator is
    std::string         bType   = "boundary=";
    std::string::size_type  pos     = content_type.find(bType);

    // generate the separators
    std::string sep1 = content_type.substr(pos + bType.length());
......

need Find ';' ...

eeriedoy <eeriedoy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eeriedoy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-01 sebdiaz StatusNone Fixed
        PrivacyPrivate Public
        Assigned toNone sebdiaz
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code