We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/dist/littlejs.js?1117
1 parent 4665a6f commit 3080b41Copy full SHA for 3080b41
vlib/net/http/file/static_server.v
@@ -74,7 +74,7 @@ fn (mut h StaticHttpHandler) handle(req http.Request) http.Response {
74
defer {
75
log.info('took: ${sw.elapsed().microseconds():6}µs, status: ${res.status_code}, size: ${res.body.len:9}, url: ${url}')
76
}
77
- mut uri_path := url.all_after_first('/').trim_right('/')
+ mut uri_path := url.all_after_first('/').all_before('?').trim_right('/')
78
requested_file_path := os.norm_path(os.real_path(os.join_path_single(h.params.folder,
79
uri_path)))
80
if !requested_file_path.starts_with(h.params.folder) {
0 commit comments