[Pkg-owncloud-commits] [owncloud] 04/08: Also replace the backslash with a minus

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:09:22 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.0.11
in repository owncloud.

commit f603454fba7e468a9f6b46e2095264782ad450dd
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 f2698ff..102d0cf 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" ){

-- 
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