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:
darin%netscape.com 2001-03-03 02:20:28 +00:00
Родитель b552370668
Коммит 1e93bb6310
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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);
}