(r *http.Request)
| 920 | } |
| 921 | |
| 922 | func correctPageFromLoginAttempt(r *http.Request) string { |
| 923 | to := r.FormValue("to") |
| 924 | if to == "" { |
| 925 | to = "/" |
| 926 | } else if !strings.HasPrefix(to, "/") { |
| 927 | to = "/" + to |
| 928 | } |
| 929 | return to |
| 930 | } |
| 931 | |
| 932 | func (h *Handler) LogHandlerFunc(f http.HandlerFunc) http.HandlerFunc { |
| 933 | return func(w http.ResponseWriter, r *http.Request) { |