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:
margaret.chan%sun.com
2002-03-06 01:11:12 +00:00
parent c2699ab1c9
commit a0f17a3fef

View File

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