1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 09:29:01 +00:00

Allows parsing of empty attributes in Set-Cookie header. Fixes #1169

This commit is contained in:
nnposter
2018-04-01 22:47:25 +00:00
parent 089a76952b
commit 59f80c31eb

View File

@@ -778,8 +778,10 @@ parse_set_cookie = function (s)
-- Loop over the attributes.
while s:sub(pos, pos) == ";" do
pos = pos + 1
pos = skip_space(s, pos)
-- Skip over empty attributes
repeat
pos = skip_space(s, pos + 1)
until s:sub(pos, pos) ~= ";"
if pos > #s then
break
end