mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-24 10:20:52 -05:00
[BUG] config: fix erroneous check on cookie domain names
It was a OR instead of a AND, so it was required to have a cookie
name which contained a dot AND began with a dot.
(cherry picked from commit a1e107fc13)
This commit is contained in:
parent
1780416e33
commit
3d8fbb6658
1 changed files with 2 additions and 2 deletions
|
|
@ -1454,10 +1454,10 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (*args[cur_arg + 1] != '.' || !strchr(args[cur_arg + 1] + 1, '.')) {
|
||||
if (*args[cur_arg + 1] != '.' && !strchr(args[cur_arg + 1] + 1, '.')) {
|
||||
/* rfc2109, 4.3.2 Rejecting Cookies */
|
||||
Alert("parsing [%s:%d]: domain '%s' contains no embedded"
|
||||
" dots or does not start with a dot.\n",
|
||||
" dots and does not start with a dot.\n",
|
||||
file, linenum, args[cur_arg + 1]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue