rDrama/files/helpers
justcool393 1ae3dc85c2
Fix: Redirect loop on formkey or nonce mismatch.
* fix 401-302-401-302-429 loop

* don't logout users on bad form key, just treat the request as unauthenticated

* Handle None/empty case in validate_formkey.

A supplied empty formkey, or the lack of a supplied formkey (None) is not a valid formkey. Handle this inside the function rather than at the call-site.

* Validate as false if no hashstr or string

Co-authored-by: Snakes <104547575+TLSM@users.noreply.github.com>
2022-12-17 11:20:27 -06:00
..
alerts.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
assetcache.py assetcache: add interface for non-Jinja consumers. 2022-08-30 16:23:09 -04:00
const.py Rework error system a bit to remove a bunch of duplicated code (#434) 2022-12-01 20:58:27 -06:00
get.py Move post/comment ID boilerplate inside getters. 2022-11-09 20:37:04 -06:00
images.py Add trailing LF to text files 2022-05-10 21:05:51 -04:00
jinja2.py Volunteer Janitor: Initial hooks. 2022-12-01 18:53:24 -08:00
lazy.py Convert text file line endings to LF. 2022-05-09 07:20:47 -05:00
sanitize.py Fix some deprecations and factor out a helper function (#387) 2022-10-27 22:15:48 -05:00
security.py Fix: Redirect loop on formkey or nonce mismatch. 2022-12-17 11:20:27 -06:00
strings.py Improve error output for util function. 2022-12-05 00:49:19 -08:00
wrappers.py Fix: Redirect loop on formkey or nonce mismatch. 2022-12-17 11:20:27 -06:00