From 8744fdfaf31ea8a5ba2efb9af34397ab01bf1369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 26 Jan 2023 23:26:43 +0100 Subject: core: make filter names case sensitive (issue #1872) --- src/gui/gui-filter.c | 2 +- src/plugins/plugin-api-info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c index e2642713e..113f8f850 100644 --- a/src/gui/gui-filter.c +++ b/src/gui/gui-filter.c @@ -292,7 +292,7 @@ gui_filter_find_pos (struct t_gui_filter *filter) for (ptr_filter = gui_filters; ptr_filter; ptr_filter = ptr_filter->next_filter) { - if (string_strcasecmp (filter->name, ptr_filter->name) < 0) + if (strcmp (filter->name, ptr_filter->name) < 0) return ptr_filter; } diff --git a/src/plugins/plugin-api-info.c b/src/plugins/plugin-api-info.c index 0eb20b473..abf6c4cbd 100644 --- a/src/plugins/plugin-api-info.c +++ b/src/plugins/plugin-api-info.c @@ -1347,7 +1347,7 @@ plugin_api_infolist_filter_cb (const void *pointer, void *data, ptr_filter = ptr_filter->next_filter) { if (!arguments || !arguments[0] - || string_match (ptr_filter->name, arguments, 0)) + || string_match (ptr_filter->name, arguments, 1)) { if (!gui_filter_add_to_infolist (ptr_infolist, ptr_filter)) { -- cgit v1.2.3