bin/contrib/rc-httpd/handlers/{dir-index, serve-static}: urlencode -d -> urldecode.awk
This commit is contained in:
parent
094e2622bc
commit
2d05e8ffc6
@ -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){
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user