X Tutup
The Wayback Machine - https://web.archive.org/web/20240214155447/https://github.com/github/codeql/pull/15604
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

Ruby: add additional sources on the request object of Rails #15604

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

Conversation

p-
Copy link
Contributor

@p- p- commented Feb 13, 2024

This PR adds some missing sources on the request object of Ruby on Rails (e.g. when used in an ActionController). E.g. the possibility of accessing a parameter directly via the request object request["parameter_name"] or accessing a header via request.headers['Accept'].

There is some overlap with the request properties as modelled for Rack and I am not sure if the original intent was that these sources should be provided by the Rack additions. (Currently they are not however.)

Additionally, I removed the three host related properties "host_authority", "host", "hostname" inside of HeadersCall as they were listed twice. (once in HeadersCall and once in HostCall). Maybe there's a reason why they were duplicated...

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

Successfully merging this pull request may close these issues.

None yet

1 participant
X Tutup