Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterd
Commits
1ed1589c
Commit
1ed1589c
authored
Sep 26, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update flask csrf extent
parent
419c9c29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
routes.py
app/upload/routes.py
+5
-4
No files found.
app/upload/routes.py
View file @
1ed1589c
...
...
@@ -5,7 +5,7 @@ import shutil
from
flask
import
request
,
jsonify
,
render_template
,
redirect
,
url_for
,
flash
,
current_app
from
flask_login
import
login_required
,
current_user
from
flask_jwt_extended
import
jwt_required
,
get_jwt_identity
from
flask_wtf
import
csrf_exemp
t
from
flask_wtf
import
CSRFProtec
t
from
werkzeug.utils
import
secure_filename
from
app.upload
import
bp
from
app
import
db
...
...
@@ -16,6 +16,7 @@ from app.utils.logging import log_file_operation, log_upload_progress
from
app.upload.forms
import
FixtureUploadForm
,
ZipUploadForm
logger
=
logging
.
getLogger
(
__name__
)
csrf
=
CSRFProtect
()
@
bp
.
route
(
'/fixture'
,
methods
=
[
'GET'
,
'POST'
])
@
login_required
...
...
@@ -905,7 +906,7 @@ def upload_fixture_zip(fixture_id):
return
redirect
(
request
.
referrer
or
url_for
(
'main.fixtures'
))
@
bp
.
route
(
'/chunk'
,
methods
=
[
'POST'
])
@
csrf
_
exempt
@
csrf
.
exempt
@
login_required
@
require_active_user
def
upload_chunk
():
...
...
@@ -946,7 +947,7 @@ def upload_chunk():
return
jsonify
({
'success'
:
False
,
'error'
:
str
(
e
)}),
500
@
bp
.
route
(
'/finalize'
,
methods
=
[
'POST'
])
@
csrf
_
exempt
@
csrf
.
exempt
@
login_required
@
require_active_user
def
finalize_upload
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment