Fixed that if url starts with '//' then only 'https:' gets prepended not 'https://'

This commit is contained in:
dankito 2021-11-01 15:20:38 +01:00
parent 1356249621
commit 4aa5837681
1 changed files with 4 additions and 3 deletions

View File

@ -171,9 +171,10 @@ open class BankIconFinder : IBankIconFinder {
if (urlEncoded.startsWith("http")) { if (urlEncoded.startsWith("http")) {
return urlEncoded return urlEncoded
} } else if (urlEncoded.startsWith("//")) {
else { return "https:$urlEncoded"
return "https://" + urlEncoded } else {
return "https://$urlEncoded"
} }
} }