bookwyrm/bookwyrm/utils
Mouse Reeve 2de115fc1e Add helper to refer views back to http referers safely
In most cases, we want to return back to where we came from after
performing an action. It's not safe to return to an arbitrary referer,
so this streamlines using the util validator to verify the redirect and
fall back on regular redirect params if the referer is outside our
domain.
2023-03-20 10:25:38 -07:00
..
__init__.py More pylint fixes 2021-06-18 14:29:24 -07:00
cache.py Adjusts cache get_or_set to work with tests 2022-01-09 12:16:01 -08:00
isni.py black 2023-01-26 16:56:11 +11:00
log.py Linting fixes 2022-11-14 01:04:20 -08:00
regex.py Parse hashtags and store them in CreateStatus view 2023-03-07 12:55:36 +01:00
sanitizer.py Render hashtag links with data-mention="hashtag" attribute 2023-03-07 13:16:45 +01:00
validate.py Add helper to refer views back to http referers safely 2023-03-20 10:25:38 -07:00