From 494ef3f95255b9ac66803e0e51d478828e445628 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Aug 2019 22:12:37 +0100 Subject: [PATCH] Check that addresses look like addresses --- posts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 5ada7f00e..3b0fdf7bc 100644 --- a/posts.py +++ b/posts.py @@ -1340,8 +1340,10 @@ def sendToNamedAddresses(session,baseDir: str, \ continue if isinstance(recipientsObject[rType], list): if debug: - print('recipientsObject: '+str(recipientsObject)) + print('recipientsObject: '+str(recipientsObject[rType])) for address in recipientsObject[rType]: + if '/' not in address: + continue if address.endswith('#Public'): continue if address.endswith('/followers'):