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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user