Fixed that if url starts with '//' then only 'https:' gets prepended not 'https://'
This commit is contained in:
parent
1356249621
commit
4aa5837681
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue