summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-11-14 19:10:52 +0000
committerMark Haines <mark.haines@matrix.org>2014-11-14 19:11:04 +0000
commit8c2b5ea7c44e3915068cd9ec18e5c22d0a3acfcc (patch)
treecc9d5c93ab2bc044e7e3cd51b43025c68a00da76 /synapse/handlers
parentValidate signatures on incoming events (diff)
downloadsynapse-8c2b5ea7c44e3915068cd9ec18e5c22d0a3acfcc.tar.xz
Fix PDU and event signatures
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/federation.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index fce935b444..fc00128c56 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -139,9 +139,10 @@ class FederationHandler(BaseHandler):
                 affected=event.event_id,
             )
 
-        if not check_event_content_hash(pdu):
+        if not check_event_content_hash(event):
             logger.warn(
-                "Event content has been tampered, redacting %s", event.event_id
+                "Event content has been tampered, redacting %s, %s",
+                event.event_id, encode_canonical_json(event.get_full_dict())
             )
             event = redacted_event