From 3448260d30e8f8a7fd4d6f88b75f1ea69e9e9b35 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Thu, 5 Jan 2006 13:12:46 +0000 Subject: [PATCH] bug 322319 patch by Christian Franke r=biesi sr=jst --- modules/plugin/base/src/nsPluginHostImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++;