bin/contrib/rc-httpd/handlers/{dir-index, serve-static}: urlencode -d -> urldecode.awk
This commit is contained in:
parent
e1ab0fd080
commit
b2de370f6c
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
PATH_INFO=`{echo $PATH_INFO | urlencode -d}
|
PATH_INFO=`{echo $PATH_INFO | urldecode.awk}
|
||||||
full_path=$"FS_ROOT^$"PATH_INFO
|
full_path=$"FS_ROOT^$"PATH_INFO
|
||||||
full_path=$"full_path
|
full_path=$"full_path
|
||||||
if(! test -d $full_path){
|
if(! test -d $full_path){
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
full_path=`{echo $"FS_ROOT^$"PATH_INFO | urlencode -d}
|
full_path=`{echo $"FS_ROOT^$"PATH_INFO | urldecode.awk}
|
||||||
full_path=$"full_path
|
full_path=$"full_path
|
||||||
if(~ $full_path */)
|
if(~ $full_path */)
|
||||||
error 503
|
error 503
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue