X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Fforumcreatepostpage.cpp;h=4fd81c901a1ac8c46fb4df30f481203bb6f50944;hb=56f67ecca96efc7b72d03c95c8c42cfb66e31468;hp=ac9ed16766bfeba4359688bf6964b25d9131f7ad;hpb=221236a4d3aac4144529d418ce368db5c98facb0;p=fms.git diff --git a/src/http/pages/forumcreatepostpage.cpp b/src/http/pages/forumcreatepostpage.cpp index ac9ed16..4fd81c9 100644 --- a/src/http/pages/forumcreatepostpage.cpp +++ b/src/http/pages/forumcreatepostpage.cpp @@ -1,6 +1,7 @@ #include "../../../include/http/pages/forumcreatepostpage.h" #include "../../../include/stringfunctions.h" #include "../../../include/message.h" +#include "../../../include/unicode/unicodeformatter.h" #ifdef XMEM #include @@ -61,6 +62,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c { body=(*queryvars.find("body")).second; body=StringFunctions::Replace(body,"\r\n","\n"); + UnicodeFormatter::LineWrap(body,80,">",body); } else { @@ -118,7 +120,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c replyst.ResultText(0,subject); replyst.ResultText(1,body); - if(subject.size()<3 || (subject.substr(0,2)!="re:" && subject.substr(0,2)!="Re:")) + if(subject.size()<3 || (subject.substr(0,3)!="re:" && subject.substr(0,3)!="Re:")) { subject="Re: "+subject; } @@ -148,6 +150,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c } body+="\n"; } + } } } @@ -184,7 +187,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c content+=""; content+=""; content+=""; - content+=""; + content+=""; content+=""; content+="
From"+LocalIdentityDropDown("localidentityid",localidentityidstr)+"
Subject
Message
Message
\r\n"; content+="";