Skip to content

views: Update utility for checking URL safety

Django has updated the is_safe_url() method that we based our implementation on. It is now called url_has_allowed_host_and_scheme(). Our implementation remains simple as we don't allow any hostname or scheme to be set.

Signed-off-by: Sunil Mohan Adapa sunil@medhas.org

Merge request reports

Loading