diff --git a/bin/controller.rc b/bin/controller.rc index 81fe8da..b894685 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -39,6 +39,7 @@ fn menu { ls $lsArgs $1 | sed $dirfilter | awk -F/ ' BEGIN { print "
" } + # 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("[*/]$", "")