]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
HTTP: only set cookies for the correct domain
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 3 Jul 2010 20:22:24 +0000 (22:22 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 3 Jul 2010 20:22:24 +0000 (22:22 +0200)
commitd6e43d0c97b56958c5ab707715eff0396b26cb81
treed179cc7d96a52b70c449801b4471fd6d17100593
parent4875fd2668ba6393edeea2d85b14a7e2f3a18050
HTTP: only set cookies for the correct domain

When a redirect has a Set-Cookie: header, check if the cookie domain is
valid for the host we are redirected to. If not, don't set the cookie
in the new request.
lib/rbot/core/utils/httputil.rb