-
Notifications
You must be signed in to change notification settings - Fork 22
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
feature: add support for base dir #2
Conversation
c2acb3a
to
b075391
Compare
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.
Thank you for the contribution.
I'll be happy to accept a static/local handler feature. While it wasn't something I originally thought has place here, if it makes sense for you, it probably will make sense for others.
I do have some concerns about sanitization that are added inline.
BaseDir allows one to serve files that are stored on the host machine.
Sanitize user input by using Join. Join subsequently calls Clean.
b075391
to
c2011ea
Compare
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.
I've renamed it to appendSuffix and applied it to tftpd and httpd, can you have a look?
Co-authored-by: Daniel Speichert <[email protected]>
4be3a4c
to
544bf2f
Compare
BaseDir allows one to serve files that are stored on the host machine.