| Index: webkit/glue/multipart_response_delegate.cc
|
| ===================================================================
|
| --- webkit/glue/multipart_response_delegate.cc (revision 4781)
|
| +++ webkit/glue/multipart_response_delegate.cc (working copy)
|
| @@ -247,8 +247,13 @@
|
| }
|
|
|
| boundary_start_offset += strlen("boundary=");
|
| - size_t boundary_end_offset = content_type.length();
|
|
|
| + size_t boundary_end_offset =
|
| + content_type_as_string.find(';', boundary_start_offset);
|
| +
|
| + if (boundary_end_offset == std::string::npos)
|
| + boundary_end_offset = content_type_as_string.length();
|
| +
|
| size_t boundary_length = boundary_end_offset - boundary_start_offset;
|
|
|
| *multipart_boundary =
|
|
|