X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=server.sh;h=4eb253ffe2696f5ac5be0b60be18d91da74b2511;hp=dc97607e3f41475325d7d1e15b5302e9acf0a83a;hb=b3455673aa27e118f55b91fe69a4b07c42dbe3a7;hpb=0bcf2131288e43e7c2ec533f1918dfd4235309aa diff --git a/server.sh b/server.sh index dc97607..4eb253f 100755 --- a/server.sh +++ b/server.sh @@ -84,3 +84,10 @@ HTTP_format(){ bX ' } + +PATH_INFO="$(invalidate "${PATH_INFO}" '(^|.*/)\.\./.*' '')" + +if [ -z "$QUERY_STRING" -a -f "$_DATA/$PATH_INFO" ]; then + . "$_EXEC/shcgi/static.sh" "$_DATA/$PATH_INFO" + exit 0 +fi |HTTP_format