[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [messagelib] webengineviewer/src/checkphishingurl: Add more autotest
From: Montel Laurent <montel () kde ! org>
Date: 2016-11-28 13:16:02
Message-ID: E1cBLms-00066Z-ND () code ! kde ! org
[Download RAW message or body]
Git commit 51cf737543821b02dd59f49146125b40d4a68492 by Montel Laurent.
Committed on 28/11/2016 at 13:15.
Pushed by mlaurent into branch 'master'.
Add more autotest
M +5 -1 webengineviewer/src/checkphishingurl/urlhashing.cpp
https://commits.kde.org/messagelib/51cf737543821b02dd59f49146125b40d4a68492
diff --git a/webengineviewer/src/checkphishingurl/urlhashing.cpp b/webengin=
eviewer/src/checkphishingurl/urlhashing.cpp
index 721ce57..99febce 100644
--- a/webengineviewer/src/checkphishingurl/urlhashing.cpp
+++ b/webengineviewer/src/checkphishingurl/urlhashing.cpp
@@ -37,5 +37,9 @@ QString UrlHashing::canonicalizeUrl()
if (mUrl.isEmpty()) {
return {};
}
- return mUrl.toString();
+ if (mUrl.path().isEmpty()) {
+ mUrl.setPath(QStringLiteral("/"));
+ }
+
+ return QString::fromLatin1(mUrl.toEncoded(QUrl::RemoveFragment|QUrl::N=
ormalizePathSegments|QUrl::EncodeUnicode));
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic