[Pkg-owncloud-commits] [owncloud] 292/394: Also replace the backslash with a minus
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:32 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit b8e03090eada02308f9e46ee228cba7a4553ba6c
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Sat Jan 19 19:45:28 2013 +0100
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 96242a8..b35770d 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -176,8 +176,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" ) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list