-
-
Notifications
You must be signed in to change notification settings - Fork 109
fix: if serve: false and root is not defined, only allow sending files with absolute path #540
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
Conversation
…s with absolute path
ilteoood
left a comment
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
|
I would like to have a review by @climba03003 or @is2ei regarding the security aspect. |
|
I think @climba03003 would be the right person, as he originally mentioned the security concern. |
|
I pinged him on discord. Lets see if he has time. |
climba03003
left a comment
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.
|
@is2ei |
is2ei
left a comment
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!
If serve is set to false, it only allows to send files specified with an absolute path. Or else sendFile makes no sense anymore, despite that we want to allow the use of sendFile.
Checklist
npm run test && npm run benchmark --if-presentand the Code of conduct