Hello community,

here is the log from the commit of package kio for openSUSE:Factory checked in 
at 2017-11-10 14:36:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kio (Old)
 and      /work/SRC/openSUSE:Factory/.kio.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kio"

Fri Nov 10 14:36:21 2017 rev:54 rq:538578 version:5.39.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kio/kio.changes  2017-10-27 13:55:59.847229711 
+0200
+++ /work/SRC/openSUSE:Factory/.kio.new/kio.changes     2017-11-10 
14:36:22.553679906 +0100
@@ -1,0 +2,7 @@
+Thu Nov  2 14:13:08 UTC 2017 - [email protected]
+
+- Add fix-handling-of-KCookieAdvice_AcceptForSession.patch to
+  fix the "Accept For Session" cookie setting that was not properly
+  respected (boo#1049975, kde#386325)
+
+-------------------------------------------------------------------

New:
----
  fix-handling-of-KCookieAdvice_AcceptForSession.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kio.spec ++++++
--- /var/tmp/diff_new_pack.ptj3HF/_old  2017-11-10 14:36:23.549643914 +0100
+++ /var/tmp/diff_new_pack.ptj3HF/_new  2017-11-10 14:36:23.549643914 +0100
@@ -79,6 +79,8 @@
 Source1:        baselibs.conf
 # PATCH-FIX-OPENSUSE kio_help-fallback-to-kde4-docs.patch -- allow kio_help to 
see into kde4 documentation, needed especially for khelpcenter5
 Patch0:         kio_help-fallback-to-kde4-docs.patch
+# PATCH-FIX-UPSTREAM
+Patch1:         fix-handling-of-KCookieAdvice_AcceptForSession.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -125,6 +127,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
   %cmake_kf5 -d build

++++++ fix-handling-of-KCookieAdvice_AcceptForSession.patch ++++++
>From 23d031b1da60e5cf7a36ec2d5fd9affbc9fd4989 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <[email protected]>
Date: Thu, 2 Nov 2017 15:08:38 +0100
Subject: [PATCH] kio: fix handling of KCookieAdvice::AcceptForSession

Commit 23874cab9d broke the handling of KCookieAdvice::AcceptForSession
because strToAdvice(adviceToStr(KCookieAdvice::AcceptForSession)) now
returns KCookieAdvice::Dunno. Ignore spaces in the argument of
strToAdvice to properly recognize the AcceptForSession setting and
restore compatibility with previous configs.

BUG: 386325

Differential Revision: https://phabricator.kde.org/D8545
---
 src/kcms/kio/kcookiespolicyselectiondlg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kcms/kio/kcookiespolicyselectiondlg.h 
b/src/kcms/kio/kcookiespolicyselectiondlg.h
index 5efb7dad..7ee90245 100644
--- a/src/kcms/kio/kcookiespolicyselectiondlg.h
+++ b/src/kcms/kio/kcookiespolicyselectiondlg.h
@@ -49,7 +49,7 @@ public:
         if (_str.isEmpty())
             return KCookieAdvice::Dunno;
 
-        QString advice = _str.toLower();
+        QString advice = _str.toLower().remove(' ');
 
         if (advice == QLatin1String ("accept"))
             return KCookieAdvice::Accept;
-- 
2.13.6


Reply via email to