From 1f40716715942c43559e0a5aee1bc7ee8935aeb4 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 12 Jul 2003 03:24:39 +0000 Subject: [PATCH] Added a default index.xbf file if URL ends with '/' (points to a directory). --- examples/bife.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/bife.php b/examples/bife.php index cf2b2f6..0b18152 100644 --- a/examples/bife.php +++ b/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 {{{ -- 2.43.0