Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-19 22:45:28 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-01-19 22:47:26 +0400
commit42b924da0e1d24fa85f3c696c4dcdbe8adc383c7 (patch)
tree157f62be51012c3d8fe663d813ddeace894da8ec /lib/helper.php
parentf1939866f38a6d0b148e8e26d12d442b9edfd595 (diff)
Also replace the backslash with a minus
For Windows systems
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php3
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" ) {