mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
History: Store addresses with custom schemes
BUG: 406375 FIXED-IN: 24.02.0 Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
63bf4a5cce
commit
759b3f5ea5
|
@ -23,6 +23,7 @@
|
||||||
#include "mainapplication.h"
|
#include "mainapplication.h"
|
||||||
#include "sqldatabase.h"
|
#include "sqldatabase.h"
|
||||||
#include "webview.h"
|
#include "webview.h"
|
||||||
|
#include "qzsettings.h"
|
||||||
|
|
||||||
#include <QWebEngineProfile>
|
#include <QWebEngineProfile>
|
||||||
|
|
||||||
|
@ -74,7 +75,7 @@ void History::addHistoryEntry(const QUrl &url, QString title)
|
||||||
QSL("http"), QSL("https"), QSL("ftp"), QSL("file")
|
QSL("http"), QSL("https"), QSL("ftp"), QSL("file")
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!schemes.contains(url.scheme())) {
|
if (!schemes.contains(url.scheme()) && !qzSettings->allowedSchemes.contains(url.scheme())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user