1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

History: Only save whitelisted schemes

This commit is contained in:
David Rosca 2018-02-05 15:28:10 +01:00
parent e28b2048df
commit e74f18e8e8
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -70,14 +70,11 @@ void History::addHistoryEntry(const QUrl &url, QString title)
return;
}
const QStringList ignoredSchemes = {
QStringLiteral("falkon"),
QStringLiteral("view-source"),
QStringLiteral("data"),
QStringLiteral("about")
const QStringList schemes = {
QSL("http"), QSL("https"), QSL("ftp"), QSL("file")
};
if (url.isEmpty() || ignoredSchemes.contains(url.scheme())) {
if (!schemes.contains(url.scheme())) {
return;
}