From ef7d283e0493ea46ecccbd6c5d2f2ae08d00f6a6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Feb 2023 15:12:10 +0000 Subject: [PATCH 1/2] Debug for malformed ciphertext --- inbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 58c55f902..3aa96c36d 100644 --- a/inbox.py +++ b/inbox.py @@ -3179,7 +3179,8 @@ def _valid_post_content(base_dir: str, nickname: str, domain: str, 'allow comments: ' + original_post_id) return False if invalid_ciphertext(message_json['object']['content']): - print('REJECT: malformed ciphertext in content') + print('REJECT: malformed ciphertext in content ' + + message_json['object']['content']) return False if debug: print('ACCEPT: post content is valid') From 87694299442bb5ca110d37dec1a785195ddcf949 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Feb 2023 15:14:56 +0000 Subject: [PATCH 2/2] Show message id for malformed cipher --- inbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/inbox.py b/inbox.py index 3aa96c36d..6f2ba0b06 100644 --- a/inbox.py +++ b/inbox.py @@ -3180,6 +3180,7 @@ def _valid_post_content(base_dir: str, nickname: str, domain: str, return False if invalid_ciphertext(message_json['object']['content']): print('REJECT: malformed ciphertext in content ' + + message_json['object']['id'] + ' ' + message_json['object']['content']) return False if debug: