Skip to content

Change message to show the file name in the error#3797

Closed
avenirer wants to merge 2 commits intobcit-ci:developfrom
avenirer:patch-8
Closed

Change message to show the file name in the error#3797
avenirer wants to merge 2 commits intobcit-ci:developfrom
avenirer:patch-8

Conversation

@avenirer
Copy link
Copy Markdown
Contributor

When doing multiple file uploads, the user won't know what file is the error related to. This way the upload library will give more information in the errors.

When doing multiple file uploads, the user won't know what file is the error related to. This way the upload library will give more information in the errors.
@narfbg
Copy link
Copy Markdown
Contributor

narfbg commented Apr 24, 2015

The wording feels a bit off and there's a potential security issue (similar to the one that triggered the 2.2.2 release) in simply outputting a user-submitted file name ... I'd rather not have it that way by default, you can always configure your own lang lines.

@narfbg narfbg closed this Apr 24, 2015
@avenirer
Copy link
Copy Markdown
Contributor Author

Actually is not a security issue, it only outputs the file name prepared by the library. Regarding the wording, it can at any time be changed by any pull request :)

@narfbg
Copy link
Copy Markdown
Contributor

narfbg commented Apr 24, 2015

That "prepared by the library" filename is often just the user-submitted filename as is ...

@avenirer
Copy link
Copy Markdown
Contributor Author

Of course is the user-submitted filename. That is what the user needs to know when an error appears. Anyway, the only point at which we could talk about security issues would be in the _prep_filename() method. So, if something bad happens it can only happen if it passes that function, with or without the lines I wrote in this PR.

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