Skip to content

Commit b8e0309

Browse files
committed
Also replace the backslash with a minus
For Windows systems
1 parent c05c8ab commit b8e0309

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ public static function mimetypeIcon( $mimetype ) {
176176
if(isset($alias[$mimetype])) {
177177
$mimetype=$alias[$mimetype];
178178
}
179-
// Replace slash with a minus
179+
// Replace slash and backslash with a minus
180180
$mimetype = str_replace( "/", "-", $mimetype );
181+
$mimetype = str_replace( "\\", "-", $mimetype );
181182

182183
// Is it a dir?
183184
if( $mimetype == "dir" ) {

0 commit comments

Comments
 (0)