aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2022-03-31 17:46:11 -0700
committerScott Jackson <daneren2005@gmail.com>2022-03-31 17:46:11 -0700
commit0220dde2134f4a139ff501169d6b47e6f0280d3f (patch)
treed3a8fe38944becae72b63e1f1fee42b9db830c15 /app
parent7f07dc8fcdbf707b887a47fc2749b1a677d65279 (diff)
downloaddsub-0220dde2134f4a139ff501169d6b47e6f0280d3f.tar.gz
dsub-0220dde2134f4a139ff501169d6b47e6f0280d3f.tar.bz2
dsub-0220dde2134f4a139ff501169d6b47e6f0280d3f.zip
Try to be more conservative with #1093 to only cases where we are pretty sure it is backslashes instead of forward slashes
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/FileUtil.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
index 9fb39692..85786b12 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
@@ -695,7 +695,9 @@ public class FileUtil {
}
// Airsonic 11 appears to be returning backslashes instead of always forcing path with forward slashes
- path = path.replace("\\", "/");
+ if(!path.contains("/")) {
+ path = path.replace("\\", "/");
+ }
for (String s : FILE_SYSTEM_UNSAFE_DIR) {
path = path.replace(s, "-");
}