gen_auth: do not allow the equal sign alone for digest auth

This commit is contained in:
Evgeny Grin (Karlson2k)
2022-06-05 12:48:31 +03:00
parent 3fcec14c8d
commit 8a2da6d6a3
+2
View File
@@ -175,6 +175,8 @@ parse_dauth_params (const char *str,
mhd_assert ('\t' != str[i]);
left = str_len - i;
if ('=' == str[i])
return false; /* The equal sign is not allowed as the first character */
for (p = 0; p < sizeof(map) / sizeof(map[0]); p++)
{
struct dauth_token_param *const aparam = map + p;