horizon/horizon/test/unit
Radomir Dopieralski 8825407c1b
Fix open redirect
Make sure the "next" URL is in the same origin as Horizon before
redirecting to it.

Conflicts:
	horizon/test/unit/workflows/test_workflows.py

Adapted to work with Django before 1.11 which only has a host argument,
instead of allowed_hosts for django.utils.http.is_safe_url().

Change-Id: I06b2bfc8e3638591615547780c3fa34b0abe19f6
Closes-bug: #1865026
(cherry picked from commit 252467100f)
(cherry picked from commit baa370f843)
(cherry picked from commit 6c208edf32)
2020-12-18 19:16:20 +01:00
..
forms horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
hacking horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
management horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
middleware horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
tables Avoid duplicated message in Batch/DeleteAction 2018-01-23 22:46:25 +09:00
tabs horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
templatetags horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
utils Complete angular translation extract pattern 2019-05-12 09:08:12 +00:00
workflows Fix open redirect 2020-12-18 19:16:20 +01:00
__init__.py horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
test_base.py Fix Angular errors in openstack_auth 2018-03-17 18:40:50 +09:00
test_exceptions.py horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
test_messages.py horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
test_notifications.py horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00
test_views.py horizon: Move test files to match corresponding module structure 2017-12-09 21:37:12 +09:00