1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

core, plugins: make plugin names case sensitive (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-15 20:29:45 +01:00
parent 4b5897f110
commit 5434f4f969
5 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -128,7 +128,7 @@ plugin_search (const char *name)
for (ptr_plugin = weechat_plugins; ptr_plugin;
ptr_plugin = ptr_plugin->next_plugin)
{
if (string_strcasecmp (ptr_plugin->name, name) == 0)
if (string_strcmp (ptr_plugin->name, name) == 0)
return ptr_plugin;
}
@@ -172,8 +172,8 @@ plugin_check_extension_allowed (const char *filename)
length_ext = strlen (config_plugin_extensions[i]);
if (length >= length_ext)
{
if (string_strcasecmp (filename + length - length_ext,
config_plugin_extensions[i]) == 0)
if (string_strcmp (filename + length - length_ext,
config_plugin_extensions[i]) == 0)
{
/* extension allowed */
return 1;
@@ -235,8 +235,8 @@ plugin_check_autoload (const char *filename)
length_ext = strlen (config_plugin_extensions[i]);
if (length >= length_ext)
{
if (string_strcasecmp (base_name + length - length_ext,
config_plugin_extensions[i]) == 0)
if (string_strcmp (base_name + length - length_ext,
config_plugin_extensions[i]) == 0)
{
plugin_name = string_strndup (base_name, length - length_ext);
break;
@@ -256,7 +256,7 @@ plugin_check_autoload (const char *filename)
match = string_match_list (plugin_name,
(const char **)plugin_autoload_array,
0);
1);
free (plugin_name);