mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Allows the HTTP Set-Cookie parser to handle a trailing semicolon. Fixes #731
This commit is contained in:
@@ -762,6 +762,9 @@ parse_set_cookie = function (s)
|
||||
while s:sub(pos, pos) == ";" do
|
||||
pos = pos + 1
|
||||
pos = skip_space(s, pos)
|
||||
if pos > #s then
|
||||
break
|
||||
end
|
||||
pos, name = get_token(s, pos)
|
||||
if not name then
|
||||
return nil, string.format("Can't get attribute name of cookie \"%s\".", cookie.name)
|
||||
|
||||
Reference in New Issue
Block a user