ref: 220cfb7a23dd0e6f6efb2cabe1389e723073e5b6
dir: /handlers/dir-index/
#!/bin/rc full_path=`{echo $"fs_root^$"location | urlencode -d} full_path=$"full_path if(! ~ `{cleanname -d$fs_root $full_path} `{cleanname $fs_root}^*){ error 53 'path not allowed' exit } echo '20 text/gemini'^$cr ls $full_path | sed ' s,^'$fs_root'/,,g s,^,=> /,g'