fix: Basic auth and password can have non whitspace characters. Fixes 142.
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
b94d7dc537
commit
3bf6584d81
@ -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