From: Leandro Lucarella Date: Sat, 12 Jul 2003 03:24:39 +0000 (+0000) Subject: Added a default index.xbf file if URL ends with '/' (points to a directory). X-Git-Tag: svn_import~1 X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/commitdiff_plain/0bc38f0abdc18d6b4fffaa0c65d2a8f34a298969 Added a default index.xbf file if URL ends with '/' (points to a directory). --- diff --git a/base/examples/bife.php b/base/examples/bife.php index cf2b2f6..0b18152 100644 --- a/base/examples/bife.php +++ b/base/examples/bife.php @@ -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 {{{