* Wed Sep 03 2008 Lukáš Tinkl <ltinkl@redhat.com> 4.1.1-5 - fixed crash on setting cookies on empty domains (like the file system), KDE bug #170147 - fix URL navigator focus in file dialogs, KDE bug #169497, #170211
17 lines
547 B
Diff
17 lines
547 B
Diff
Index: kioslave/http/kcookiejar/kcookiejar.cpp
|
|
===================================================================
|
|
--- kioslave/http/kcookiejar/kcookiejar.cpp (revision 856378)
|
|
+++ kioslave/http/kcookiejar/kcookiejar.cpp (revision 856379)
|
|
@@ -516,8 +516,10 @@
|
|
extractDomains(_fqdn, domains);
|
|
if (domains.count() > 3)
|
|
_domain = domains[3];
|
|
+ else if ( domains.count() > 0 )
|
|
+ _domain = domains[0];
|
|
else
|
|
- _domain = domains[0];
|
|
+ _domain = L1("");
|
|
}
|
|
|
|
QString KCookieJar::stripDomain(const KHttpCookie& cookie)
|