From 5d1084ae8458a374675e06b77c3e7618e84639bf Mon Sep 17 00:00:00 2001
From: akwizgran <akwizgran@users.sourceforge.net>
Date: Thu, 31 Mar 2016 12:06:28 +0100
Subject: [PATCH] Fixed a stupid forum post validation bug.

The signature covers the forum post body, not the message body.
---
 briar-core/src/org/briarproject/forum/ForumPostValidator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/briar-core/src/org/briarproject/forum/ForumPostValidator.java b/briar-core/src/org/briarproject/forum/ForumPostValidator.java
index aac7b6265d..8796bb7e6d 100644
--- a/briar-core/src/org/briarproject/forum/ForumPostValidator.java
+++ b/briar-core/src/org/briarproject/forum/ForumPostValidator.java
@@ -84,7 +84,7 @@ class ForumPostValidator extends BdfMessageValidator {
 				PublicKey key = keyParser.parsePublicKey(author.getPublicKey());
 				// Serialise the data to be signed
 				BdfList signed = BdfList.of(g.getId(), m.getTimestamp(), parent,
-						authorList, contentType, body);
+						authorList, contentType, forumPostBody);
 				// Verify the signature
 				Signature signature = crypto.getSignature();
 				signature.initVerify(key);
-- 
GitLab