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:
parent
e28b2048df
commit
e74f18e8e8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user