From 50c8f52ee84a09657de1f3cb34581be82b77d6a1 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Mon, 22 May 2017 00:52:07 +0200 Subject: [PATCH] Fix --- router/view_torrent_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/view_torrent_handler.go b/router/view_torrent_handler.go index 7cb2c2aa..ec384272 100644 --- a/router/view_torrent_handler.go +++ b/router/view_torrent_handler.go @@ -68,7 +68,7 @@ func PostCommentHandler(w http.ResponseWriter, r *http.Request) { if userPermission.NeedsCaptcha(currentUser) { userCaptcha := captcha.Extract(r) if !captcha.Authenticate(userCaptcha) { - messages.AddError("errors", "Bad captcham!") + messages.AddError("errors", "Bad captcha!") } } content := p.Sanitize(r.FormValue("comment")) @@ -104,7 +104,7 @@ func ReportTorrentHandler(w http.ResponseWriter, r *http.Request) { if userPermission.NeedsCaptcha(currentUser) { userCaptcha := captcha.Extract(r) if !captcha.Authenticate(userCaptcha) { - messages.AddError("errors", "Bad captchae!") + messages.AddError("errors", "Bad captcha!") } } if !messages.HasErrors() {