-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add resolvability check before redirecting to prevent insecure r…
…edirects after publishing (#436) * refactor: implement resolvability check before redirecting * refactor: used get_preview_url from helpers * refactor: test clean for ON_PUBLISH_REDIRECT setting * refactor: check for redirect url resolvable before redirecting * fix ruff linting issue * Update admin.py * Update test_admin.py to satisfy ruff * Update factories.py * refactor: requested redirect or get_absolute_url --------- Co-authored-by: Fabian Braun <[email protected]>
- Loading branch information
1 parent
59e06b9
commit 3b3fa2f
Showing
2 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters