Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
a6b1357e
Commit
a6b1357e
authored
Apr 04, 2017
by
Julian Rother
Browse files
Fixed key error problem in csrf_inject
parent
ec0ecf1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
a6b1357e
...
...
@@ -94,7 +94,7 @@ def csrf_protect(func):
@
app
.
url_defaults
def
csrf_inject
(
endpoint
,
values
):
if
endpoint
not
in
csrf_endpoints
or
not
session
[
'_csrf_token'
]
:
if
endpoint
not
in
csrf_endpoints
or
not
session
.
get
(
'_csrf_token'
)
:
return
values
[
'_csrf_token'
]
=
session
[
'_csrf_token'
]
...
...
Write
Preview
Supports
Markdown
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