ref: 61ed9413625f4b6bef35dcaf99e8cee26ab6cfb1
parent: db04b9c8e041c6965e4a6a59d8b9a324a9e6c580
author: uriel <uriel@suckless.org>
date: Sat Jun 28 02:26:28 EDT 2008
Comment explaning what still needs to be done to properly allow files in dirs
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -39,6 +39,7 @@
ls $lsArgs $1 | sed $dirfilter | awk -F/ '
BEGIN { print "<ul class=\"sidebar\">" }
END { print "</ul>" }
+ # Should add \. to the list of allowed chars in file names, but need to find a way to filter out .txt and so on
/^([a-zA-Z0-9+_\-]+[\/*]?)+$/ && $NF != "index" {
isdir = match($0, "/$")
sub("[*/]$", "")