summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-20 15:26:54 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-20 15:26:54 (GMT)
commitc97f4b28277468b8d8748b41240fc4b8644f074e (patch)
tree7dc6fda88255266255d900a9196ace64d0f9a713
parent92d07b3dc7c084aa1c2be5550268c43a013caa67 (diff)
Reactivate some code
-rw-r--r--webengineviewer/src/checkphishingurl/searchfullhashjob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/webengineviewer/src/checkphishingurl/searchfullhashjob.cpp b/webengineviewer/src/checkphishingurl/searchfullhashjob.cpp
index 43536ce..b03849d 100644
--- a/webengineviewer/src/checkphishingurl/searchfullhashjob.cpp
+++ b/webengineviewer/src/checkphishingurl/searchfullhashjob.cpp
@@ -87,7 +87,6 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
"negativeCacheDuration": "300.000s"
}
*/
- /*
QJsonDocument document = QJsonDocument::fromJson(replyStr);
if (document.isNull()) {
Q_EMIT result(WebEngineViewer::SearchFullHashJob::Unknown, mHash);
@@ -104,10 +103,12 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
if (threatTypeStr == QStringLiteral("MALWARE")) {
const QVariantMap urlMap = map[QStringLiteral("threat")].toMap();
if (urlMap.count() == 1) {
+ /*
if (urlMap[QStringLiteral("url")].toString() == mHash.toString()) {
Q_EMIT result(WebEngineViewer::SearchFullHashJob::MalWare, mHash);
return;
}
+ */
}
} else {
qWarning() << " SearchFullHashJob::parse threatTypeStr : " << threatTypeStr;
@@ -116,7 +117,6 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
Q_EMIT result(WebEngineViewer::SearchFullHashJob::Unknown, mHash);
}
}
- */
}
void SearchFullHashJob::slotCheckUrlFinished(QNetworkReply *reply)