diff --git a/modules/plugin/base/src/nsPluginHostImpl.cpp b/modules/plugin/base/src/nsPluginHostImpl.cpp index 913e697f0e9..01e62538e5e 100644 --- a/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -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++;