Fixes bug 66181. Content-Disposition with attachment=filename did not accept
a quoted-string as the filename. r=gagan, sr=mscott.
This commit is contained in:
Родитель
b552370668
Коммит
1e93bb6310
|
@ -632,6 +632,10 @@ void nsExternalAppHandler::ExtractSuggestedFileNameFromChannel(nsIChannel* aChan
|
|||
if (pos > 0)
|
||||
dispFileName.Truncate(pos);
|
||||
|
||||
// According to RFC 2183, filename can be given as filename=value,
|
||||
// where value is token or quoted-string. See bug 66181.
|
||||
dispFileName.StripChar('"');
|
||||
|
||||
// ONLY if we got here, will we remember the suggested file name...
|
||||
mSuggestedFileName.AssignWithConversion(dispFileName);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче