mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 15:46:23 -07:00
Fix chopping off n at the end of posts.
Cause was some escaped backslashes that shouldn't have been escaped.
This commit is contained in:
parent
bf446f25f4
commit
b7e9815ebd
1 changed files with 1 additions and 1 deletions
|
@ -686,7 +686,7 @@ func makePost(w http.ResponseWriter, r *http.Request, data interface{}) {
|
|||
post.Email = ""
|
||||
}
|
||||
post.Subject = html.EscapeString(escapeString(request.FormValue("postsubject")))
|
||||
post.MessageText = strings.Trim(escapeString(request.FormValue("postmsg")),"\\r\\n")
|
||||
post.MessageText = strings.Trim(escapeString(request.FormValue("postmsg")),"\r\n")
|
||||
|
||||
err := db.QueryRow("SELECT `max_message_length` FROM `" + config.DBprefix + "boards` WHERE `id` = " + strconv.Itoa(post.BoardID)).Scan(&max_message_length)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue