Merge pull request #1672 from amkhlv/master

increase the size of CSRF token
This commit is contained in:
Michael Snoyman 2020-05-01 13:35:16 +03:00 committed by GitHub
commit 2b5bf7b9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# ChangeLog for yesod-core
## 1.6.18.1
* Increase the size of CSRF token
## 1.6.18
* Add functions for setting description and OG meta [#1663](https://github.com/yesodweb/yesod/pull/1663)

View File

@ -129,7 +129,7 @@ parseWaiRequest env session useToken mmaxBodySize =
-- Already have a token, use it.
Just bs -> Left $ Just $ decodeUtf8With lenientDecode bs
-- Don't have a token, get a random generator and make a new one.
Nothing -> Right $ fmap Just . randomString 10
Nothing -> Right $ fmap Just . randomString 40
| otherwise = Left Nothing
textQueryString :: W.Request -> [(Text, Text)]

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.6.18
version: 1.6.18.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>