From f09b8bcae753b769fedcf03eb4507f16760ad86c Mon Sep 17 00:00:00 2001 From: akuma06 Date: Sat, 20 May 2017 17:13:43 +0200 Subject: [PATCH] Modified info string --- router/upload.go | 2 +- router/upload_handler.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/router/upload.go b/router/upload.go index f7d3bd28..b8027cee 100644 --- a/router/upload.go +++ b/router/upload.go @@ -78,7 +78,7 @@ var ErrInvalidTorrentName = errors.New("Torrent name is invalid") var ErrInvalidTorrentDescription = errors.New("Torrent description is invalid") // error indicating a torrent's description is invalid -var ErrInvalidWebsiteLink = errors.New("Website url is invalid") +var ErrInvalidWebsiteLink = errors.New("Website url or IRC link is invalid") // error indicating a torrent's category is invalid var ErrInvalidTorrentCategory = errors.New("Torrent category is invalid") diff --git a/router/upload_handler.go b/router/upload_handler.go index 559e013b..5677ab9c 100644 --- a/router/upload_handler.go +++ b/router/upload_handler.go @@ -101,6 +101,7 @@ func UploadGetHandler(w http.ResponseWriter, r *http.Request) { messages := msg.GetMessages(r) // new util for errors and infos var uploadForm UploadForm + _ = uploadForm.ExtractInfo(r) user := GetUser(r) if userPermission.NeedsCaptcha(user) { uploadForm.CaptchaID = captcha.GetID()