From 0dba064c8efb0bbecc3de790ada819f3290fe619 Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 4 Jul 2008 22:49:05 +0200 Subject: [PATCH] Fix to handle 'implicit dir paths' (ie., paths that match a dir but have no trailing /) properly in menu --- bin/controller.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index b894685..8278abb 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -53,7 +53,7 @@ fn menu { path = $0 "/" } - if(index(ENVIRON["REQUEST_URI"], "/" path) == 1) { + if(index(ENVIRON["REQUEST_URI"] "/", "/" path) == 1) { if(isdir) { print "
  • » " bname "" system("rc -c ''menu " path "''")