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:48:26 +0400
commitf603454fba7e468a9f6b46e2095264782ad450dd (patch)
tree55f0b390077e26f889f3767045a328dc7088fb42
parent4e2b8349a2f159339c8a1fee949578a1110adb70 (diff)
Also replace the backslash with a minus
For Windows systems
-rw-r--r--lib/helper.php3
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" ){