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

load the session if the session is not preloaded already #1741

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

laomatt
Copy link

@laomatt laomatt commented Oct 16, 2024

Summary

When I upgraded an app to rails 7, the token controller was not pre loading the session which is necessary for the creation of the token. This is just to make sure the session is created if its not pre loaded.

Copy link

guardrails bot commented Oct 16, 2024

⚠️ We detected 1 security issue in this pull request:

Insecure Use of Language/Framework API (1)
Severity Details Docs
Medium Title: User Controlled Method Invocation
session.send(:load!) if session.id.nil?
📚

More info on how to fix Insecure Use of Language/Framework API in Ruby.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant