mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make BridgeDistribution setting validator case-insensitive.
This patch makes sure that we accept values such as "nOne", "None", and "AnY" as valid values for BridgeDistribution. We later ensure to lower-case the values before they are forwarded to the BridgeDB. See: https://bugs.torproject.org/32753
This commit is contained in:
@@ -485,7 +485,7 @@ check_bridge_distribution_setting(const char *bd)
|
||||
};
|
||||
unsigned i;
|
||||
for (i = 0; i < ARRAY_LENGTH(RECOGNIZED); ++i) {
|
||||
if (!strcmp(bd, RECOGNIZED[i]))
|
||||
if (!strcasecmp(bd, RECOGNIZED[i]))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user