remove \r from status
Ted Unangst tedu@tedunangst.com
Mon, 06 Jan 2020 12:28:25 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -1132,7 +1132,7 @@ options.Avatar = fmt.Sprintf("https://%s/meme/%s", serverName, ava)
} else { options.Avatar = "" } - whatabout = strings.TrimSpace(whatabout) + whatabout = strings.Replace(strings.TrimSpace(whatabout), "\r", "", -1) j, err := jsonify(options) if err == nil { _, err = db.Exec("update users set about = ?, options = ? where username = ?", whatabout, j, u.Username)