diff options
author | deva <deva> | 2010-02-26 11:35:01 +0000 |
---|---|---|
committer | deva <deva> | 2010-02-26 11:35:01 +0000 |
commit | cd50c6f535cdccb661cb93fde561c10ced3f069e (patch) | |
tree | a1846c3444eee4c9f146ea1ac971e266ee8a4644 | |
parent | 45bcd95467ffc2fce3b246c9c26c9070e29ae86d (diff) |
Fix missing XML decoding in journal.
-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; |