You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Header parser in parse_set_cookie() bails out on a cookie header with a trailing semicolon, like...
Set-Cookie: session_id=76ca8bc8c19;
...because an attribute is expected to follow the semicolon:
whiles:sub(pos, pos) ==";" dopos=pos+1pos=skip_space(s, pos)
pos, name=get_token(s, pos)
ifnotnamethenreturnnil, string.format("Can't get attribute name of cookie \"%s\".", cookie.name)
end...
The following patch resolves the issue:
--- a/nselib/http.lua
+++ b/nselib/http.lua
@@ -762,6 +762,9 @@
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)
Please let me know if you have any questions or concerns. Otherwise I will commit the patch in a few weeks.
The text was updated successfully, but these errors were encountered:
Header parser in parse_set_cookie() bails out on a cookie header with a trailing semicolon, like...
...because an attribute is expected to follow the semicolon:
The following patch resolves the issue:
Please let me know if you have any questions or concerns. Otherwise I will commit the patch in a few weeks.
The text was updated successfully, but these errors were encountered: