forked from extern/egroupware
"remove index.{html|php} added by apache, which causes the upload/browsing in some apache configs to fail"
This commit is contained in:
parent
e8ab381986
commit
30c265a5c7
@ -165,7 +165,8 @@ function Server_MapPath( $path )
|
|||||||
if ( function_exists( 'apache_lookup_uri' ) )
|
if ( function_exists( 'apache_lookup_uri' ) )
|
||||||
{
|
{
|
||||||
$info = apache_lookup_uri( $path ) ;
|
$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
|
// This isn't correct but for the moment there's no other solution
|
||||||
|
Loading…
Reference in New Issue
Block a user