diff --git a/briar.py b/briar.py index 9e32e1d17..4df6c09d5 100644 --- a/briar.py +++ b/briar.py @@ -26,6 +26,8 @@ def getBriarAddress(actorJson: {}) -> str: propertyValue['value'] = propertyValue['value'].strip() if len(propertyValue['value']) < 50: continue + if not propertyValue['value'].startswith('briar://'): + continue if propertyValue['value'].lower() != propertyValue['value']: continue if '"' in propertyValue['value']: @@ -47,6 +49,8 @@ def setBriarAddress(actorJson: {}, briarAddress: str) -> None: if len(briarAddress) < 50: notBriarAddress = True + if not briarAddress.startswith('briar://'): + notBriarAddress = True if briarAddress.lower() != briarAddress: notBriarAddress = True if '"' in briarAddress: