Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError thrown if is null #63

Merged
merged 1 commit into from
Apr 2, 2024
Merged

TypeError thrown if is null #63

merged 1 commit into from
Apr 2, 2024

Conversation

uintaam
Copy link
Contributor

@uintaam uintaam commented Apr 2, 2024

If closure is passed and it returns null, then a TypeError is thrown by the attributeElement. This happens with the CSRF token if the TrustedHosts middleware is used and an untrusted host hits the application.

@butschster butschster self-requested a review April 2, 2024 06:25
@butschster butschster self-assigned this Apr 2, 2024
@butschster butschster added the bug Something isn't working label Apr 2, 2024
@butschster
Copy link
Owner

Thx!

@butschster butschster merged commit 17f3a19 into butschster:3.x Apr 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants