summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Budde <mbudde@gmail.com>2019-02-23 14:36:43 +0100
committerMartin Michlmayr <tbm@cyrius.com>2019-03-30 19:47:47 +0700
commit13044f9c8d5757b6885d78cb5f7f37770e3750ab (patch)
treed9f6960a86f975ea49aceecd8ddbadb24d5e54a0 /src
parent151b762e6a0e60015336b3a53e20358e058384d3 (diff)
downloadfork-ledger-13044f9c8d5757b6885d78cb5f7f37770e3750ab.tar.gz
fork-ledger-13044f9c8d5757b6885d78cb5f7f37770e3750ab.tar.bz2
fork-ledger-13044f9c8d5757b6885d78cb5f7f37770e3750ab.zip
Reject postings with comment after flag
Fixes #1753
Diffstat (limited to 'src')
-rw-r--r--src/textual.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 04e90e45..258e2560 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1440,7 +1440,7 @@ post_t * instance_t::parse_post(char * line,
// Parse the account name
- if (! *p)
+ if (! *p || *p == ';')
throw parse_error(_("Posting has no account"));
char * next = next_element(p, true);