Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix open redirect vulnerability in toggle_lang function
- Add URL validation using Django's url_has_allowed_host_and_scheme - Ensure redirects are only to allowed hosts - Fallback to home page for potentially malicious redirects - Maintain HTTPS when in use
- Loading branch information