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

Sanitize the filename of uploaded file #628

Merged
merged 1 commit into from May 10, 2017

Conversation

aspirewit
Copy link
Contributor

@aspirewit aspirewit commented May 10, 2017

1. Not parameterize filename of uploaded file

'图片'.parameterize # will return ''

2. Sanitize the filename of uploaded file

@aspirewit aspirewit closed this May 10, 2017
@aspirewit
Copy link
Contributor Author

Needs sanitize the filename, to prevent hacking

@aspirewit aspirewit reopened this May 10, 2017
@aspirewit aspirewit changed the title Not parameterize filename of uploaded file Sanitize the filename of uploaded file May 10, 2017
@owen2345 owen2345 merged commit 6df6a28 into owen2345:master May 10, 2017
@aspirewit aspirewit deleted the not-parameterize-filename branch May 10, 2017 14:08
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

2 participants