#include "../../../include/http/pages/forumcreatepostpage.h"\r
#include "../../../include/stringfunctions.h"\r
#include "../../../include/message.h"\r
+#include "../../../include/unicode/unicodeformatter.h"\r
\r
#ifdef XMEM\r
#include <xmem.h>\r
{\r
body=(*queryvars.find("body")).second;\r
body=StringFunctions::Replace(body,"\r\n","\n");\r
+ UnicodeFormatter::LineWrap(body,80,">",body);\r
}\r
else\r
{\r
replyst.ResultText(0,subject);\r
replyst.ResultText(1,body);\r
\r
- if(subject.size()<3 || (subject.substr(0,2)!="re:" && subject.substr(0,2)!="Re:"))\r
+ if(subject.size()<3 || (subject.substr(0,3)!="re:" && subject.substr(0,3)!="Re:"))\r
{\r
subject="Re: "+subject;\r
}\r
}\r
body+="\n";\r
}\r
+\r
}\r
}\r
}\r
content+="<table class=\"createpost\">";\r
content+="<tr><td class=\"identity\">From</td><td>"+LocalIdentityDropDown("localidentityid",localidentityidstr)+"</td></tr>";\r
content+="<tr><td class=\"subject\">Subject</td><td><input type=\"text\" name=\"subject\" maxlength=\"60\" size=\"60\" value=\""+SanitizeOutput(subject)+"\"></td></tr>";\r
- content+="<tr><td class=\"body\">Message</td><td><textarea name=\"body\" cols=\"80\" rows=\"30\">"+SanitizeOutput(body)+"</textarea></td></tr>";\r
+ content+="<tr><td class=\"body\">Message</td><td><textarea name=\"body\" cols=\"80\" rows=\"30\">"+SanitizeTextAreaOutput(body)+"</textarea></td></tr>";\r
content+="<tr><td colspan=\"2\" class=\"send\"><input type=\"submit\" value=\"Send\"></td></tr>";\r
content+="</table>\r\n";\r
content+="</form>";\r