1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/admin
catborise 940545c2c4 fix(admin): saving a user returns to ?next= only on this site
The user edit page redirected to its ?next= parameter after saving,
whatever it held: a link to the edit page with next=https://other.site
sent the administrator who saved the form to that site (CodeQL
py/url-redirection). The account page links there with a next of this
site.

next is now followed only when url_has_allowed_host_and_scheme accepts
it for this host, as user_instance_delete already does; otherwise the
user list. The test fails on the previous code for an absolute URL, a
scheme-relative one and a backslash variant.
2026-10-06 08:00:13 +03:00
..
migrations ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
templates/admin fix: every icon of the templates comes from the local icon cache 2026-10-05 20:20:57 +03:00
__init__.py fix typo error 2022-09-05 15:36:37 +03:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
decorators.py feat(security): apply Codex review hardening to console tokens and superuser authorization 2026-09-27 11:30:03 +03:00
forms.py fix(admin): a new user's password reaches the database only hashed 2026-10-05 18:39:33 +03:00
models.py format python code with black 2022-11-02 08:54:35 +03:00
permissions.py feat(security): apply Codex review hardening to console tokens and superuser authorization 2026-09-27 11:30:03 +03:00
test_user_create.py fix(admin): a new user's password reaches the database only hashed 2026-10-05 18:39:33 +03:00
test_user_update_next.py fix(admin): saving a user returns to ?next= only on this site 2026-10-06 08:00:13 +03:00
tests.py fix: require POST for user block/unblock and OTP email, flag console cookie 2026-10-02 22:44:00 +03:00
urls.py format python code with black 2022-11-02 08:54:35 +03:00
views.py fix(admin): saving a user returns to ?next= only on this site 2026-10-06 08:00:13 +03:00