diff options
Diffstat (limited to 'server/src/journal_commit.cc')
-rw-r--r-- | server/src/journal_commit.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/journal_commit.cc b/server/src/journal_commit.cc index 414fa20..a94f1d4 100644 --- a/server/src/journal_commit.cc +++ b/server/src/journal_commit.cc @@ -51,6 +51,7 @@ #include "template.h" #include "templateparser.h" +#include "xml_encode_decode.h" static inline bool iswhitespace(char c) { @@ -184,13 +185,13 @@ int journal_commit(const char *cpr, const char *user, mwrite(sock, "charset: utf8\r\n"); mwrite(sock, "\r\n"); - std::string resume = stripTrailingWhitepace(addNewlines(buf, 60)); + std::string resume = buf;//stripTrailingWhitepace(addNewlines(buf, 60)); // send body if(sock != -1 && write(sock, resume.c_str(), resume.size()) != (ssize_t)resume.size()) { PRACRO_ERR_LOG(journal, "write did not write all the bytes in the buffer.\n"); } - PRACRO_DEBUG(journal, "%s", buf); + PRACRO_DEBUG(journal, "%s\n", buf); #ifndef WITHOUT_UPLOADSERVER // close socket @@ -254,7 +255,7 @@ void JournalWriter::addEntry(Transaction &transaction, Commit &commit, } // Strip trailing whitespace, and add newlines. - std::string r = stripTrailingWhitepace(addNewlines(resume, 60)); + std::string r = stripTrailingWhitepace(addNewlines(xml_decode(resume), 60)); std::string m = commit.macro; ResumeEntry re; |