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

core: make Curl constants and options case sensitive (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-21 20:18:58 +01:00
parent bbbd08694b
commit fca78ca823
+8 -2
View File
@@ -1027,9 +1027,12 @@ weeurl_search_constant (struct t_url_constant *constants, const char *name)
{
int i;
if (!name)
return -1;
for (i = 0; constants[i].name; i++)
{
if (string_strcasecmp (constants[i].name, name) == 0)
if (strcmp (constants[i].name, name) == 0)
{
return i;
}
@@ -1090,9 +1093,12 @@ weeurl_search_option (const char *name)
{
int i;
if (!name)
return -1;
for (i = 0; url_options[i].name; i++)
{
if (string_strcasecmp (url_options[i].name, name) == 0)
if (strcmp (url_options[i].name, name) == 0)
{
return i;
}