From 42b924da0e1d24fa85f3c696c4dcdbe8adc383c7 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sat, 19 Jan 2013 19:45:28 +0100 Subject: [PATCH] Also replace the backslash with a minus For Windows systems --- lib/helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/helper.php b/lib/helper.php index 7be54cacbe..a7b2a42995 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" ) {