"remove index.{html|php} added by apache, which causes the upload/browsing in some apache configs to fail"

This commit is contained in:
Ralf Becker 2008-04-15 08:02:13 +00:00
parent e8ab381986
commit 30c265a5c7

View File

@ -165,7 +165,8 @@ function Server_MapPath( $path )
if ( function_exists( 'apache_lookup_uri' ) )
{
$info = apache_lookup_uri( $path ) ;
return $info->filename . $info->path_info ;
// RalfBecker 2008/04/15: remove index.{html|php} added by apache
return str_replace(array('/index.html','/index.php'),'',$info->filename) . $info->path_info ;
}
// This isn't correct but for the moment there's no other solution