ref: 94488206bdf9439045d61afe0f16f533397f4474
parent: 874f8902794a836a2b04ccc90d44bfcae4add261
author: sl <sl@stanleylieber.com>
date: Sun Jun 14 18:29:36 EDT 2020
bin/contrib/rc-httpd/handlers/{dir-index, serve-static}: urlencode -d -> urldecode.awk
--- a/bin/contrib/rc-httpd/handlers/dir-index
+++ b/bin/contrib/rc-httpd/handlers/dir-index
@@ -1,5 +1,5 @@
#!/bin/rc
-PATH_INFO=`{echo $PATH_INFO | urlencode -d}
+PATH_INFO=`{echo $PATH_INFO | urldecode.awk}
full_path=$"FS_ROOT^$"PATH_INFO
full_path=$"full_path
if(! test -d $full_path){
--- a/bin/contrib/rc-httpd/handlers/serve-static
+++ b/bin/contrib/rc-httpd/handlers/serve-static
@@ -1,5 +1,5 @@
#!/bin/rc
-full_path=`{echo $"FS_ROOT^$"PATH_INFO | urlencode -d}
+full_path=`{echo $"FS_ROOT^$"PATH_INFO | urldecode.awk}
full_path=$"full_path
if(~ $full_path */)
error 503