mirror of
https://github.com/bitwarden/android.git
synced 2026-05-07 11:29:37 -05:00
PM-36474: bug: Ensure shared totp labels do not parse secret (#6873)
This commit is contained in:
@@ -25,7 +25,8 @@ fun List<SharedAccountData.Account>.toAuthenticatorItems(): List<AuthenticatorIt
|
||||
.pathSegments
|
||||
.firstOrNull()
|
||||
?.removePrefix("$issuer:")
|
||||
?.takeUnless { it.isBlank() }
|
||||
// If there is no scheme, then the whole uri is the secret.
|
||||
?.takeUnless { it.isBlank() || uri.scheme == null }
|
||||
?: cipherData.username
|
||||
|
||||
AuthenticatorItem(
|
||||
|
||||
Reference in New Issue
Block a user