summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-01-18 11:12:34 (GMT)
committerThiago Macieira <thiago.macieira@intel.com>2013-01-18 11:21:55 (GMT)
commit794b14b8af5b610fc3eed6945f93f0c69dd49a9a (patch)
tree4ea6cd663355ff729a71ed8d5f09fb3fa075948c
parentc10c57942fe0113f3b60651159201fe23a2e39cd (diff)
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.
-rw-r--r--kioslave/http/kcookiejar/kcookiejar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kioslave/http/kcookiejar/kcookiejar.cpp b/kioslave/http/kcookiejar/kcookiejar.cpp
index 8d94dcf..4f3ac4d 100644
--- a/kioslave/http/kcookiejar/kcookiejar.cpp
+++ b/kioslave/http/kcookiejar/kcookiejar.cpp
@@ -183,6 +183,7 @@ KHttpCookie::KHttpCookie(const QString &_host,
mExpireDate(_expireDate),
mProtocolVersion(_protocolVersion),
mSecure(_secure),
+ mCrossDomain(false),
mHttpOnly(_httpOnly),
mExplicitPath(_explicitPath),
mUserSelectedAdvice(KCookieDunno)