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

Clearer comment and variable name on IP spoofing #22372

Merged
merged 1 commit into from
Nov 23, 2015
Merged

Clearer comment and variable name on IP spoofing #22372

merged 1 commit into from
Nov 23, 2015

Conversation

greysteil
Copy link
Contributor

Makes digging into an IpSpoofAttackError easier:

  • Renames the check_ip_spoofing local variable to ip_spoofing_check (which is the name used everywhere else)
  • Extends the comment above IpSpoofAttackError to give details of how the error could be raised by user behaviour, not just proxy configuration.

Hopefully uncontroversial, and makes the IP spoofing check a lot easier to understand.

@rails-bot
Copy link

r? @schneems

(@rails-bot has picked a reviewer for you, use r? to override)

# Since we have no idea, we give up and explode.
# If they are both set, it means that either:
#
# 1) this request passed through two proxies with incompatible IP header
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize each number list entry. i.e. "This" instead of "this". Don't end with an "or". They are separate list entries and should stand on their own. End each list entry in a period.

@greysteil
Copy link
Contributor Author

@schneems - updated.

@schneems
Copy link
Member

thanks 🚀

schneems added a commit that referenced this pull request Nov 23, 2015
Clearer comment and variable name on IP spoofing
@schneems schneems merged commit 14314ca into rails:master Nov 23, 2015
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.

None yet

3 participants