Bug 121509 - make content-disposition parsing more forgiving. Ported by Pete Zha. a=jdunn@netscape.com
git-svn-id: svn://10.0.0.236/branches/SUN_6_2_1_BRANCH@115897 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -719,7 +719,7 @@ void nsExternalAppHandler::ExtractSuggestedFileNameFromChannel(nsIChannel* aChan
|
||||
nsCAutoString dispositionValue;
|
||||
dispositionValue = disp;
|
||||
PRInt32 pos = dispositionValue.Find("filename=", PR_TRUE);
|
||||
if (pos > 0)
|
||||
if (pos != kNotFound)
|
||||
{
|
||||
// extract everything after the filename= part and treat that as the file name...
|
||||
nsCAutoString dispFileName;
|
||||
|
||||
Reference in New Issue
Block a user