commit 1e87747abfcfdb9c97c29201cfd7815f22d5296b
parent 0a6b88c11dc3479d3407847cd64253bf1d69b04b
Author: uriel@suckless.org <unknown>
Date: Sat, 28 Jun 2008 06:26:28 +0200
Comment explaning what still needs to be done to properly allow files in dirs
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/bin/controller.rc b/bin/controller.rc
@@ -39,6 +39,7 @@ fn menu {
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("[*/]$", "")