git: 9front

Download patch

ref: a890ad992a9949d6c5f095b85aa1ef568566dc7b
parent: 56c3fcc95f9607d589125781d7cb9d12bce9371c
author: glenda <glenda@9front.local>
date: Thu Mar 31 21:53:29 EDT 2022

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

--- a/rc/bin/rc-httpd/handlers/error
+++ b/rc/bin/rc-httpd/handlers/error
@@ -19,11 +19,6 @@
 	'
 }
 
-fn 400{
-	do_error '400 Bad Request' \
-	'The request was invalid.'
-}
-
 fn 401{
 	do_error '401 Unauthorized' \
 	'The requested path '^$"location^' requires authorization.'
--