mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Browser selection and URL scheme
This commit is contained in:
@@ -83,7 +83,11 @@ object AppOriginEntryField {
|
||||
// If unable to save web domain in custom field or URL not populated, save in URL
|
||||
webDomain?.let {
|
||||
val webScheme = if (scheme.isNullOrEmpty()) "https" else scheme
|
||||
val webDomainToStore = "$webScheme://$webDomain"
|
||||
val webDomainToStore = if (webDomain.contains("://")) {
|
||||
webDomain
|
||||
} else {
|
||||
"$webScheme://$webDomain"
|
||||
}
|
||||
if (!containsDomainOrApplicationId(webDomain)) {
|
||||
if (!customFieldsAllowed || url.isEmpty()) {
|
||||
url = webDomainToStore
|
||||
|
||||
Reference in New Issue
Block a user