fix: Basic auth and password can have non whitspace characters. Fixes 142.
This commit is contained in:
parent
b94d7dc537
commit
f24609c143
@ -441,7 +441,7 @@ class AppSettingsService(acraSenderServiceProcess: Boolean = false) {
|
||||
login: String,
|
||||
password: String,
|
||||
) {
|
||||
val regex = """\/\/(\D+):(\D+)@""".toRegex()
|
||||
val regex = """\/\/(\S+):(\S+)@""".toRegex()
|
||||
val matchResult = regex.find(url)
|
||||
if (matchResult != null) {
|
||||
val (basicLogin, basicPassword) = matchResult.destructured
|
||||
|
Loading…
Reference in New Issue
Block a user