diff --git a/MagickCore/module.c b/MagickCore/module.c
index f53470d786..2566ed1f08 100644
--- a/MagickCore/module.c
+++ b/MagickCore/module.c
@@ -1259,6 +1259,7 @@ MagickPrivate MagickBooleanType OpenModule(const char *module,
p=GetCoderInfo(module,exception);
if (p != (CoderInfo *) NULL)
(void) CopyMagickString(module_name,p->name,MagickPathExtent);
+ LocaleUpper(module_name);
rights=(PolicyRights) (ReadPolicyRights | WritePolicyRights);
if (IsRightsAuthorized(ModulePolicyDomain,rights,module_name) == MagickFalse)
{
diff --git a/config/policy-websafe.xml b/config/policy-websafe.xml
index ca6c58c412..e267a5d881 100644
--- a/config/policy-websafe.xml
+++ b/config/policy-websafe.xml
@@ -91,7 +91,8 @@
-
+
+