Commit 794b14b8 authored by Thiago Macieira's avatar Thiago Macieira
Browse files

Initialise the mCrossDomain member variable in the cookies

For several months now, all my cookies would be forgotten after a kded
restart. After debugging the problem, turns out that mCrossDomain was
of value 127, which makes no sense for a boolean.

This variable has been present since 2002, which means that the
"reject cross domain cookies" feature has been broken for 10 years and
8 months.
parent c10c5794
......@@ -183,6 +183,7 @@ KHttpCookie::KHttpCookie(const QString &_host,
mExpireDate(_expireDate),
mProtocolVersion(_protocolVersion),
mSecure(_secure),
mCrossDomain(false),
mHttpOnly(_httpOnly),
mExplicitPath(_explicitPath),
mUserSelectedAdvice(KCookieDunno)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment