]> git.llucax.com Git - software/bife/bife-all.git/commitdiff
Added a default index.xbf file if URL ends with '/' (points to a directory).
authorLeandro Lucarella <llucax@gmail.com>
Sat, 12 Jul 2003 03:24:39 +0000 (03:24 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Sat, 12 Jul 2003 03:24:39 +0000 (03:24 +0000)
base/examples/bife.php

index cf2b2f612baa853d3a313919405d7f2fd91d7bff..0b18152d8c8cf002de0c1a4f5626fd9875c99791 100644 (file)
@@ -39,6 +39,9 @@ require_once 'BIFE/Translate.php';
 $file = (@$_SERVER['PATH_INFO'] and ($_SERVER['PATH_INFO'] != '/'))
     ? ".{$_SERVER['PATH_INFO']}"
     : 'index.xbf';
+if (substr($file, strlen($file)-1) == '/') {
+    $file .= 'index.xbf';
+}
 // }}}
 
 // Looks if we want to show the source {{{