messagelib: update to 18.12.0.

This commit is contained in:
John 2018-12-14 09:02:59 +01:00 committed by maxice8
parent 34cfc3629e
commit ee2b61ec75
2 changed files with 3 additions and 31 deletions

View File

@ -1,28 +0,0 @@
From 34765909cdf8e55402a8567b48fb288839c61612 Mon Sep 17 00:00:00 2001
From: Laurent Montel <montel@kde.org>
Date: Fri, 23 Nov 2018 07:37:02 +0100
Subject: Exclude Refresh from MetaData (Not necessary)
---
messageviewer/src/messagepartthemes/default/defaultrenderer.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp b/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
index 15ffe44..07de293 100644
--- a/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
+++ b/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
@@ -308,6 +308,11 @@ QString processHtml(const QString &htmlSource, QString &extraHead)
return htmlSource;
}
extraHead = s.mid(startIndex + 6 , endIndex - startIndex - 6);
+ //Don't authorize to refresh content.
+ if (s.contains(QStringLiteral("http-equiv=\"REFRESH\""), Qt::CaseInsensitive)) {
+ extraHead.clear();
+ }
+
s = s.mid(endIndex + 7).trimmed();
}
--
cgit v0.11.2

View File

@ -1,7 +1,7 @@
# Template file for 'messagelib'
pkgname=messagelib
version=18.08.3
revision=2
version=18.12.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools python kconfig"
makedepends="akonadi-contacts-devel gpgmeqt-devel kdepim-apps-libs-devel
@ -12,7 +12,7 @@ maintainer="John <johnz@posteo.net>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://community.kde.org/KDE_PIM"
distfiles="${KDE_SITE}/applications/${version}/src/messagelib-${version}.tar.xz"
checksum=5fcb7984d8422e290323fed16d12d80d65701f21222a94219967ede132eeaa6e
checksum=dbce3465e52030d632142fb7de112eb00f3fe44d695ea142de0463baa8b12ba1
patch_args="-Np1"
if [ "$CROSS_BUILD" ]; then