bin/contrib/rc-httpd/handlers/{dir-index, serve-static}: urlencode -d -> urldecode.awk

This commit is contained in:
stanleylieber 2020-06-14 22:29:36 -04:00
parent 094e2622bc
commit 2d05e8ffc6
2 changed files with 2 additions and 2 deletions

View File

@ -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){

View File

@ -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