1
0
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:
nnposter
2017-03-21 13:46:30 +00:00
parent 8b8f56eced
commit b34eaabb3b
2 changed files with 6 additions and 0 deletions

View File

@@ -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)