summaryrefslogtreecommitdiff
blob: 4d3fac7334b67a24863fb6e23b2d75a791526ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp b/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
index 0d209524..0dad4174 100644
--- a/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
+++ b/messageviewer/src/messagepartthemes/default/defaultrenderer.cpp
@@ -299,6 +299,12 @@ QString processHtml(const QString &htmlSource, QString &extraHead)
             return htmlSource;
         }
         extraHead = s.mid(6, idx - 6);
+
+        //Don't authorize to refresh content.
+        if (s.contains(QStringLiteral("http-equiv=\"REFRESH\""), Qt::CaseInsensitive)) {
+            extraHead.clear();
+        }
+
         s = s.mid(idx + 7).trimmed();
     }