From 42023ade493b34c8e6236a7dc8fe28171ba80e90 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 24 Dec 2020 16:55:06 +0000 Subject: [PATCH] Check start of briar address --- briar.py | 4 ++++ 1 file changed, 4 insertions(+) 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: