Also replace the backslash with a minus

For Windows systems
This commit is contained in:
Lukas Reschke 2013-01-19 19:45:28 +01:00
parent f1939866f3
commit 42b924da0e
1 changed files with 2 additions and 1 deletions

View File

@ -193,8 +193,9 @@ class OC_Helper {
if(isset($alias[$mimetype])) {
$mimetype=$alias[$mimetype];
}
// Replace slash with a minus
// Replace slash and backslash with a minus
$mimetype = str_replace( "/", "-", $mimetype );
$mimetype = str_replace( "\\", "-", $mimetype );
// Is it a dir?
if( $mimetype == "dir" ) {