diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-01-19 19:45:28 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-01-19 19:47:26 +0100 |
commit | 42b924da0e1d24fa85f3c696c4dcdbe8adc383c7 (patch) | |
tree | 157f62be51012c3d8fe663d813ddeace894da8ec /lib/helper.php | |
parent | f1939866f38a6d0b148e8e26d12d442b9edfd595 (diff) | |
download | nextcloud-server-42b924da0e1d24fa85f3c696c4dcdbe8adc383c7.tar.gz nextcloud-server-42b924da0e1d24fa85f3c696c4dcdbe8adc383c7.zip |
Also replace the backslash with a minus
For Windows systems
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 7be54cacbed..a7b2a429952 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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" ) { |