1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-11-06 02:23:02 +00:00

Get rid of " in some places

Violently
This commit is contained in:
Timur Ismagilov
2021-08-12 17:12:53 +05:00
parent ee8e01c0d8
commit 18179f1c7f
6 changed files with 22 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ func handlerRegister(w http.ResponseWriter, rq *http.Request) {
err = user.Register(username, password, "editor", "local", false)
)
if err != nil {
log.Printf("Failed to register \"%s\": %s", username, err.Error())
log.Printf("Failed to register %s: %s", username, err.Error())
w.Header().Set("Content-Type", mime.TypeByExtension(".html"))
w.WriteHeader(http.StatusBadRequest)
fmt.Fprint(
@@ -75,7 +75,7 @@ func handlerRegister(w http.ResponseWriter, rq *http.Request) {
),
)
} else {
log.Printf("Successfully registered \"%s\"", username)
log.Printf("Successfully registered %s", username)
user.LoginDataHTTP(w, rq, username, password)
http.Redirect(w, rq, "/"+rq.URL.RawQuery, http.StatusSeeOther)
}