mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Browser: Do not allow site automatically
This commit is contained in:
committed by
Jonathan White
parent
142454d08e
commit
e9cf38a6e3
@@ -898,16 +898,6 @@ void BrowserService::addEntry(const EntryParameters& entryParameters,
|
|||||||
|
|
||||||
const QString host = QUrl(entryParameters.siteUrl).host();
|
const QString host = QUrl(entryParameters.siteUrl).host();
|
||||||
const QString submitHost = QUrl(entryParameters.formUrl).host();
|
const QString submitHost = QUrl(entryParameters.formUrl).host();
|
||||||
BrowserEntryConfig config;
|
|
||||||
config.allow(host);
|
|
||||||
|
|
||||||
if (!submitHost.isEmpty()) {
|
|
||||||
config.allow(submitHost);
|
|
||||||
}
|
|
||||||
if (!entryParameters.realm.isEmpty()) {
|
|
||||||
config.setRealm(entryParameters.realm);
|
|
||||||
}
|
|
||||||
config.save(entry);
|
|
||||||
|
|
||||||
if (downloadFavicon && m_currentDatabaseWidget) {
|
if (downloadFavicon && m_currentDatabaseWidget) {
|
||||||
m_currentDatabaseWidget->downloadFaviconInBackground(entry);
|
m_currentDatabaseWidget->downloadFaviconInBackground(entry);
|
||||||
|
|||||||
Reference in New Issue
Block a user