mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
History: Only save whitelisted schemes
This commit is contained in:
parent
e28b2048df
commit
e74f18e8e8
@ -70,14 +70,11 @@ void History::addHistoryEntry(const QUrl &url, QString title)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QStringList ignoredSchemes = {
|
const QStringList schemes = {
|
||||||
QStringLiteral("falkon"),
|
QSL("http"), QSL("https"), QSL("ftp"), QSL("file")
|
||||||
QStringLiteral("view-source"),
|
|
||||||
QStringLiteral("data"),
|
|
||||||
QStringLiteral("about")
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (url.isEmpty() || ignoredSchemes.contains(url.scheme())) {
|
if (!schemes.contains(url.scheme())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user