fix off-by-one error in parsing out extension

change by bz


git-svn-id: svn://10.0.0.236/trunk@133227 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2002-11-06 23:59:36 +00:00
parent f1735775a3
commit a560eb1207

View File

@ -2056,7 +2056,7 @@ NS_IMETHODIMP nsExternalHelperAppService::GetTypeFromURI(nsIURI *aURI, char **aC
specStr.Length() - extLoc < 20)
{
return GetTypeFromExtension(PromiseFlatCString(
Substring(specStr, extLoc, specStr.Length() - extLoc - 1)
Substring(specStr, extLoc + 1, specStr.Length() - extLoc - 1)
).get(), aContentType);
}