all repos — honk @ 51ca900b3d4916c141611acede5c326c74650c27

my fork of honk

replace \r sooner
Ted Unangst tedu@tedunangst.com
Mon, 06 Jan 2020 12:33:48 -0500
commit

51ca900b3d4916c141611acede5c326c74650c27

parent

c92d71a61681a1c5b92ac37cfacec6b00b8d6dca

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M web.goweb.go

@@ -1108,6 +1108,7 @@ }

func saveuser(w http.ResponseWriter, r *http.Request) { whatabout := r.FormValue("whatabout") + whatabout = strings.Replace(whatabout, "\r", "", -1) u := login.GetUserInfo(r) user, _ := butwhatabout(u.Username) db := opendatabase()

@@ -1132,7 +1133,7 @@ options.Avatar = fmt.Sprintf("https://%s/meme/%s", serverName, ava)

} else { options.Avatar = "" } - whatabout = strings.Replace(strings.TrimSpace(whatabout), "\r", "", -1) + whatabout = strings.TrimSpace(whatabout) j, err := jsonify(options) if err == nil { _, err = db.Exec("update users set about = ?, options = ? where username = ?", whatabout, j, u.Username)