mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
gen_auth: do not allow the equal sign alone for digest auth
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user