jomo bba004acc7 improve URL parsing
uses `new URL()` and `decodeURI()` instead of `url.parse()`
also checks that the requested file is in a subdirectory of `public/` before serving the file

fixes path traversal vulnerability GHSA-5cxq-25mp-q5f2
2024-02-01 22:24:29 +01:00
..
2020-12-12 23:37:13 +01:00
2024-02-01 22:24:29 +01:00
2015-02-04 20:15:43 +01:00
2020-12-12 23:37:13 +01:00
2014-11-02 11:09:07 -06:00