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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user