ref: 91805c65b6cc0db891b87d64eea1f240dae7021b
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'