-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Fix issue2777: prevent filenames with relative paths #2779
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2779 +/- ##
=======================================
Coverage ? 66.09%
=======================================
Files ? 235
Lines ? 18073
Branches ? 0
=======================================
Hits ? 11946
Misses ? 6127
Partials ? 0
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@keflavich - could you please rebase? |
done. Code style failures are all unrelated. Did you enable more aggressive checks recently? I'll be happy to fix them, as they're all easy, but they don't apply to this PR |
Nope no recent updates, I suppose it maybe due to a flake8 version change? Agree to address it separately. |
Either case, it's annoying that the rest of the tests are cancelled, so I'll remove that separately, too. |
add missing os import, fix a whitespace error basename on esasky paths too
Thanks @keflavich! |
The title of this pull request says that it fixes #2777, but the issue is still open despite the pull request being merged. Should the issue be closed or is the title here wrong? |
Issue #2777 has other components that haven't been addressed here, thus it is still open. |
In that case it would be good to rename this pull request so that it wouldn't be misleading. |
WIP - first commit (3222132) addresses the possibility that
filename=
given in theContent-Disposition
header could contain a full path and could be used to overwrite pickle files in the cache directories.See issue #2777 for more info