Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/aws4Public
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Added SanitizeHost to fix host / hostname with protocol#58

Open
cainaleaouk wants to merge3 commits intomhart:master
base:master
Choose a base branch
Loading
fromcainaleaouk:master

Conversation

cainaleaouk
Copy link

I've added a method to removehttp andhttps protocols in case the user passes it in the request. It might be an edge case but improves the safety of the code. Also added some test cases.

hassankhan reacted with thumbs up emoji
@hassankhan
Copy link

hassankhan commentedNov 30, 2017
edited
Loading

+1 is there something preventing this PR from being merged? Would love to see it in a release 😄

@mhart
Copy link
Owner

Yeah, hard to balance something like this – ahost isn't a URL, so I'm not sure it's really justified adding code to cover this edge case

@hassankhan
Copy link

I somewhat agree, if the library shouldn't sanitise, then it could at least throw some sort of validation error?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@cainaleaouk@hassankhan@mhart

[8]ページ先頭

©2009-2025 Movatter.jp