Modified info string
Cette révision appartient à :
Parent
3ac73daa77
révision
f09b8bcae7
2 fichiers modifiés avec 2 ajouts et 1 suppressions
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Référencer dans un nouveau ticket