Fixed a stupid forum post validation bug.

The signature covers the forum post body, not the message body.
This commit is contained in:
akwizgran
2016-03-31 12:06:28 +01:00
parent 9fbebe2226
commit 5d1084ae84

View File

@@ -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);