mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-16 00:09:05 +00:00
Re-enable CSRF token for upload & fix API CSRF handling
This commit is contained in:
@@ -166,9 +166,6 @@ class EditForm(FlaskForm):
|
||||
|
||||
|
||||
class UploadForm(FlaskForm):
|
||||
|
||||
class Meta:
|
||||
csrf = False
|
||||
|
||||
torrent_file = FileField('Torrent file', [
|
||||
FileRequired()
|
||||
|
||||
Reference in New Issue
Block a user