Open michaeltalyansky opened 7 years ago
elseif state == EXPECT_VALUE then if byte(text_cookie, j) == SEMICOLON -- or byte(text_cookie, j) == SPACE -- or byte(text_cookie, j) == HTAB then value = sub(text_cookie, i, j - 1) cookie_table[key] = value
key, value = nil, nil
state = EXPECT_SP
i = j + 1
end
This curl:
curl -b "name3=booboo; name2=hello_Hahabooboo ; username=foofoo" -o zoo1 -v "http://test.com/1.jpg"
breaks the code, the next cookie name starts with a semicolon.
Here is the proposed fix: