diff --git a/panels/midori-plugins.c b/panels/midori-plugins.c index ee663399..f8099299 100644 --- a/panels/midori-plugins.c +++ b/panels/midori-plugins.c @@ -277,6 +277,10 @@ midori_plugins_init (MidoriPlugins* plugins) const gchar* plugin_name; const gchar* plugin_description; + /* Ignore files which don't have the correct suffix */ + if (!g_str_has_suffix (filename, G_MODULE_SUFFIX)) + continue; + fullname = g_build_filename (plugin_path, filename, NULL); module = g_module_open (fullname, G_MODULE_BIND_LOCAL); g_free (fullname);