Hello community, here is the log from the commit of package keepassxc for openSUSE:Factory checked in at 2018-09-07 15:40:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/keepassxc (Old) and /work/SRC/openSUSE:Factory/.keepassxc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "keepassxc" Fri Sep 7 15:40:03 2018 rev:14 rq:633501 version:2.3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/keepassxc/keepassxc.changes 2018-08-27 13:00:15.696875911 +0200 +++ /work/SRC/openSUSE:Factory/.keepassxc.new/keepassxc.changes 2018-09-07 15:40:06.162491171 +0200 @@ -1,0 +2,6 @@ +Wed Aug 29 15:37:25 UTC 2018 - Marcus Rueckert <mrueck...@suse.de> + +- add klipper-hint.patch: + Prevent Klipper from storing secrets in clipboard history (#1969) + +------------------------------------------------------------------- New: ---- klipper-hint.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ keepassxc.spec ++++++ --- /var/tmp/diff_new_pack.KpV8r6/_old 2018-09-07 15:40:07.674489551 +0200 +++ /var/tmp/diff_new_pack.KpV8r6/_new 2018-09-07 15:40:07.702489521 +0200 @@ -27,6 +27,7 @@ Source1: https://github.com/keepassxreboot/keepassxc/releases/download/%{version}/keepassxc-%{version}-src.tar.xz.sig Source2: https://keepassxc.org/keepassxc_master_signing_key.asc#/%{name}.keyring Patch0: keepassxc-qt_includes.patch +Patch1: klipper-hint.patch BuildRequires: cmake >= 3.1.0 BuildRequires: fdupes BuildRequires: hicolor-icon-theme @@ -64,6 +65,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake \ ++++++ klipper-hint.patch ++++++ commit 08a36b4d40475b29752d6788230289c774d76f4b Author: TheZ3ro <i...@thezero.org> Date: Wed Aug 29 17:13:55 2018 +0200 Prevent Klipper from storing secrets in clipboard history (#1969) diff --git a/src/gui/Clipboard.cpp b/src/gui/Clipboard.cpp index b30fd64b..9f4d7ed6 100644 --- a/src/gui/Clipboard.cpp +++ b/src/gui/Clipboard.cpp @@ -1,4 +1,5 @@ /* + * Copyright (C) 2017 KeePassXC Team <t...@keepassxc.org> * Copyright (C) 2012 Felix Geyer <de...@fobos.de> * * This program is free software: you can redistribute it and/or modify @@ -19,6 +20,7 @@ #include <QApplication> #include <QClipboard> +#include <QMimeData> #include <QTimer> #include "core/Config.h" @@ -46,15 +48,20 @@ void Clipboard::setText(const QString& text) { QClipboard* clipboard = QApplication::clipboard(); -#ifdef Q_OS_MAC QMimeData* mime = new QMimeData; +#ifdef Q_OS_MAC mime->setText(text); mime->setData("application/x-nspasteboard-concealed-type", text.toUtf8()); clipboard->setMimeData(mime, QClipboard::Clipboard); #else - clipboard->setText(text, QClipboard::Clipboard); + const QString secretStr = "secret"; + QByteArray secretBa = secretStr.toUtf8(); + mime->setText(text); + mime->setData("x-kde-passwordManagerHint", secretBa); + clipboard->setMimeData(mime, QClipboard::Clipboard); + if (clipboard->supportsSelection()) { - clipboard->setText(text, QClipboard::Selection); + clipboard->setMimeData(mime, QClipboard::Selection); } #endif diff --git a/src/gui/Clipboard.h b/src/gui/Clipboard.h index 60c66c88..062d360f 100644 --- a/src/gui/Clipboard.h +++ b/src/gui/Clipboard.h @@ -1,4 +1,5 @@ /* + * Copyright (C) 2017 KeePassXC Team <t...@keepassxc.org> * Copyright (C) 2012 Felix Geyer <de...@fobos.de> * * This program is free software: you can redistribute it and/or modify