mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Also replace the backslash with a minus
For Windows systems
This commit is contained in:
parent
f1939866f3
commit
42b924da0e
1 changed files with 2 additions and 1 deletions
|
|
@ -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" ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue