Open hanxi opened 3 months ago
I guess this makes sense. We did have a security advisory about symlinks, so I'm a bit cautious.
Would you like to create a PR? Also, check the advisory https://github.com/encode/starlette/security/advisories/GHSA-v5gw-mw7f-84px and see if we will not introduce something similar. 🙏
Thanks!
I test GHSA-v5gw-mw7f-84px case. test result is 404 Not Found. Review PR #2711 please. Thanks!
My test code:
The directory /home/hanxi/work/xiaomusic/music is a symlink.
I fix this in https://github.com/hanxi/starlette/commit/831cb5d255832d9f704ffd7be49b4184cd301dd6
Need pr?