Changeset 2a665297c7a8b588c97e99f1843a3b75aad25531
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r11cf105
|
r2a66529
|
|
| 91 | 91 | multipart::ptr entity::clone_as_multipart() const |
| 92 | 92 | { |
| 93 | | static const char *const content_ = "content-"; |
| | 93 | static const char content_[] = "content-"; |
| 94 | 94 | boost::random_device urand; |
| 95 | 95 | |
| … |
… |
|
| 110 | 110 | util::strip_crlf(content); |
| 111 | 111 | boost::to_lower(name); |
| 112 | | if (name.substr(0, sizeof content_) != content_) |
| | 112 | if (name.substr(0, sizeof content_ - 1) != content_) |
| 113 | 113 | continue; |
| 114 | 114 | subh->replace_field(name, content); |