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
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  sebdiaz Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    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.16-a7ba.
    Corresponding source code