зеркало из https://github.com/mozilla/gecko-dev.git
fix 314297, deleting mime part 1.x also deletes 1.x0, 1.x1, 1.x2, etc instead of just 1.x.1, 1.x.2...
This commit is contained in:
Родитель
437ed1282f
Коммит
097972215c
|
@ -207,7 +207,8 @@ MimeMultipart_parse_line (const char *line, PRInt32 length, MimeObject *obj)
|
|||
// check if this is a sub-part of a part we're stripping.
|
||||
for (PRInt32 partIndex = 0; partIndex < obj->options->state->partsToStrip.Count(); partIndex++)
|
||||
{
|
||||
if (newPart.Find(*obj->options->state->partsToStrip.CStringAt(partIndex)) == 0)
|
||||
nsCString *curPartToStrip = obj->options->state->partsToStrip.CStringAt(partIndex);
|
||||
if (newPart.Find(*curPartToStrip) == 0 && (newPart.Length() == curPartToStrip->Length() || newPart.CharAt(curPartToStrip->Length()) == '.'))
|
||||
{
|
||||
obj->options->state->strippingPart = PR_TRUE;
|
||||
if (partIndex < obj->options->state->detachToFiles.Count())
|
||||
|
|
Загрузка…
Ссылка в новой задаче