Show
Ignore:
Timestamp:
02/03/11 22:09:38 (16 months ago)
Author:
Antti-Juhani Kaijanaho <ajk@…>
Parents:
b4f0cdb42e637fd017a965937ff7dd3170eb55ac
git-committer:
Antti-Juhani Kaijanaho <ajk@…> (02/03/11 22:09:38)
Message:

Fix #81: Correct handling of Content- header fields in multiparting entities

Signed-off-by: Antti-Juhani Kaijanaho <ajk@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • msg/entity.cc

    r11cf105 r2a66529  
    9191        multipart::ptr entity::clone_as_multipart() const 
    9292        { 
    93                 static const char *const content_ = "content-"; 
     93                static const char content_[] = "content-"; 
    9494                boost::random_device urand; 
    9595 
     
    110110                        util::strip_crlf(content); 
    111111                        boost::to_lower(name); 
    112                         if (name.substr(0, sizeof content_) != content_) 
     112                        if (name.substr(0, sizeof content_ - 1) != content_) 
    113113                                continue; 
    114114                        subh->replace_field(name, content);