bug 322319 patch by Christian Franke <Franke@computer.org> r=biesi sr=jst
git-svn-id: svn://10.0.0.236/trunk@186977 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4092,10 +4092,11 @@ static int CompareExtensions(const char *aExtensionList, const char *aExtension)
|
||||
if(pComma == nsnull)
|
||||
return PL_strcasecmp(pExt, aExtension);
|
||||
|
||||
int extlen = strlen(aExtension);
|
||||
while(pComma != nsnull)
|
||||
{
|
||||
int length = pComma - pExt;
|
||||
if(0 == PL_strncasecmp(aExtension, pExt, length))
|
||||
if(length == extlen && 0 == PL_strncasecmp(aExtension, pExt, length))
|
||||
return 0;
|
||||
|
||||
pComma++;
|
||||
|
||||
Reference in New Issue
Block a user