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:
parent
f1735775a3
commit
a560eb1207
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user