Commit graph

7 commits

Author SHA1 Message Date
Bart Schuurmans c42db40a63 Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
Bart Schuurmans c73d1fff6a Remove unnecessary exceptions from validate_url_domain 2024-04-24 15:30:47 +02:00
Joeri de Ruiter ff8e4597e5 Type annotations for utils 2023-08-21 12:56:32 +02:00
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
Joachim fa3edea87b Update validate.py 2023-01-01 20:51:23 +01:00
Joachim ac2ef667af Fix error when no referer 2023-01-01 19:57:10 +01:00
Joachim bfe04feca9 Add validation util + test 2022-12-30 17:55:47 +01:00