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

PMueller solution #13

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

PMueller solution #13

wants to merge 1 commit into from

Conversation

petermueller
Copy link

No description provided.


def resolvable_check
begin
HTTParty.get(original).code == 200
Copy link
Member

Choose a reason for hiding this comment

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

What if the user is hostile?

Copy link
Author

Choose a reason for hiding this comment

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

You mean like sanitizing the original URL?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah and validation too. Let's talk about it at 4p. A couple of people made the same decision. Within the scope of this challenge, its sufficient but there's a bigger lesson about handling user input here.

Copy link
Author

Choose a reason for hiding this comment

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

oooh. If they setup up the remote server's url to return something in the status field that would be interpreted and run, instead of the normal status codes?

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.

2 participants