Skip to content

Check for invalid characters instead of escaping #45

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

Merged
merged 2 commits into from
Dec 1, 2017

Conversation

brycekahle
Copy link
Contributor

This matches how the API handles these characters.

This matches how the API handles these characters.
@brycekahle brycekahle requested a review from rybit December 1, 2017 19:26
@@ -399,7 +404,7 @@ func (n *Netlify) uploadFile(ctx context.Context, d *models.Deploy, f *FileBundl

switch t {
case fileUpload:
name := (&url.URL{Path: f.Name}).EscapedPath()
name := f.Name
Copy link
Member

Choose a reason for hiding this comment

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

this var seems unneeded now

Copy link
Member

@rybit rybit left a comment

Choose a reason for hiding this comment

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

lgtm

@brycekahle brycekahle merged commit 07580cd into master Dec 1, 2017
@brycekahle brycekahle deleted the error-invalid-filename-chars branch December 1, 2017 19:30
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