mirror of
https://github.com/vale981/lack
synced 2025-03-04 17:01:41 -05:00
fix csrf token check
This commit is contained in:
parent
abff8efeb0
commit
023444ea8f
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@
|
|||
(and csrf-token
|
||||
(let ((recieved-csrf-token
|
||||
(cdr (assoc "_csrf_token" (request-body-parameters req) :test #'string=))))
|
||||
;; for multipart/form-data
|
||||
(when (listp recieved-csrf-token)
|
||||
(setf recieved-csrf-token (first recieved-csrf-token)))
|
||||
(string= csrf-token recieved-csrf-token)))))
|
||||
|
||||
(defun csrf-token (session)
|
||||
|
|
Loading…
Add table
Reference in a new issue