/rc/bin/rc-httpd/handlers/{dir-index, serve-static}: fix directory traversal bug (thanks, igor)

This commit is contained in:
glenda 2022-04-01 01:53:29 +00:00
parent 5ddff68167
commit 60ef662b98

View file

@ -19,11 +19,6 @@ fn do_error{
' '
} }
fn 400{
do_error '400 Bad Request' \
'The request was invalid.'
}
fn 401{ fn 401{
do_error '401 Unauthorized' \ do_error '401 Unauthorized' \
'The requested path '^$"location^' requires authorization.' 'The requested path '^$"location^' requires authorization.'