remove \r from status
This commit is contained in:
parent
169c7875a8
commit
002ddf12a5
2
web.go
2
web.go
|
@ -1132,7 +1132,7 @@ func saveuser(w http.ResponseWriter, r *http.Request) {
|
||||||
} else {
|
} else {
|
||||||
options.Avatar = ""
|
options.Avatar = ""
|
||||||
}
|
}
|
||||||
whatabout = strings.TrimSpace(whatabout)
|
whatabout = strings.Replace(strings.TrimSpace(whatabout), "\r", "", -1)
|
||||||
j, err := jsonify(options)
|
j, err := jsonify(options)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
_, err = db.Exec("update users set about = ?, options = ? where username = ?", whatabout, j, u.Username)
|
_, err = db.Exec("update users set about = ?, options = ? where username = ?", whatabout, j, u.Username)
|
||||||
|
|
Loading…
Reference in New Issue