diff --git a/app/src/main/java/com/x8bit/bitwarden/data/auth/util/CompleteRegistrationDataUtils.kt b/app/src/main/java/com/x8bit/bitwarden/data/auth/util/CompleteRegistrationDataUtils.kt index e1221361f..7ce2eedec 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/auth/util/CompleteRegistrationDataUtils.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/auth/util/CompleteRegistrationDataUtils.kt @@ -9,7 +9,11 @@ import com.x8bit.bitwarden.data.platform.manager.model.CompleteRegistrationData * The [CompleteRegistrationData] will be returned when present. */ fun Intent.getCompleteRegistrationDataIntentOrNull(): CompleteRegistrationData? { - val sanitizedUriString = data.toString().replace("/redirect-connector.html#", "/") + val sanitizedUriString = data.toString().replace( + oldValue = "/redirect-connector.html#", + newValue = "/", + ignoreCase = true, + ) val uri = runCatching { Uri.parse(sanitizedUriString) }.getOrNull() ?: return null uri.host ?: return null if (uri.path != "/finish-signup") return null