diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-01-19 22:45:28 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-01-19 22:48:26 +0400 |
commit | f603454fba7e468a9f6b46e2095264782ad450dd (patch) | |
tree | 55f0b390077e26f889f3767045a328dc7088fb42 /lib | |
parent | 4e2b8349a2f159339c8a1fee949578a1110adb70 (diff) |
Also replace the backslash with a minus
For Windows systems
Diffstat (limited to 'lib')
-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 f2698ffbccd..102d0cf4ed8 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -179,8 +179,9 @@ class OC_Helper { $mimetype=$alias[$mimetype]; // echo $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" ){ |