diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-08-24 11:02:02 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-08-25 20:03:53 +0300 |
commit | 6bdb28d9a6e0f1a21619dfa8539c3ec1b562c337 (patch) | |
tree | e07164f24c030faa3ecb5148319e9143c1577523 | |
parent | ac05e45177f633523861a17db52ebca33ae9938f (diff) | |
download | libmicrohttpd-6bdb28d9a6e0f1a21619dfa8539c3ec1b562c337.tar.gz libmicrohttpd-6bdb28d9a6e0f1a21619dfa8539c3ec1b562c337.zip |
gen_auth: fixed fail on semicolon in parameter value
-rw-r--r-- | src/microhttpd/gen_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/gen_auth.c b/src/microhttpd/gen_auth.c index 02df8c2b..5c383f1a 100644 --- a/src/microhttpd/gen_auth.c +++ b/src/microhttpd/gen_auth.c | |||
@@ -399,10 +399,10 @@ parse_dauth_params (const char *str, | |||
399 | { | 399 | { |
400 | if (0 == str[i]) | 400 | if (0 == str[i]) |
401 | return false; /* Binary zero in parameter value */ | 401 | return false; /* Binary zero in parameter value */ |
402 | if (';' == str[i]) | ||
403 | return false; /* Semicolon in parameter value */ | ||
404 | i++; | 402 | i++; |
405 | } | 403 | } |
404 | if (';' == str[i]) | ||
405 | return false; /* Semicolon in parameter value */ | ||
406 | value_len = i - value_start; | 406 | value_len = i - value_start; |
407 | } | 407 | } |
408 | /* Skip all whitespaces after parameter value */ | 408 | /* Skip all whitespaces after parameter value */ |