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,
|
login: String,
|
||||||
password: String,
|
password: String,
|
||||||
) {
|
) {
|
||||||
val regex = """\/\/(\D+):(\D+)@""".toRegex()
|
val regex = """\/\/(\S+):(\S+)@""".toRegex()
|
||||||
val matchResult = regex.find(url)
|
val matchResult = regex.find(url)
|
||||||
if (matchResult != null) {
|
if (matchResult != null) {
|
||||||
val (basicLogin, basicPassword) = matchResult.destructured
|
val (basicLogin, basicPassword) = matchResult.destructured
|
||||||
|
Loading…
Reference in New Issue
Block a user