summaryrefslogtreecommitdiffstats
path: root/api/logic/FileSystem.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-11-01 00:18:49 +0100
committerPetr Mrázek <peterix@gmail.com>2018-11-01 00:18:49 +0100
commit59e2f52db75c91c39ffa0ad1d1891fe365f187e2 (patch)
tree8816fbe27b433e8f85784ab2e1fc8766fbfb2be8 /api/logic/FileSystem.cpp
parentd5037d4f795242998e1a296a592df460a545b6f6 (diff)
downloadMultiMC-59e2f52db75c91c39ffa0ad1d1891fe365f187e2.tar
MultiMC-59e2f52db75c91c39ffa0ad1d1891fe365f187e2.tar.gz
MultiMC-59e2f52db75c91c39ffa0ad1d1891fe365f187e2.tar.lz
MultiMC-59e2f52db75c91c39ffa0ad1d1891fe365f187e2.tar.xz
MultiMC-59e2f52db75c91c39ffa0ad1d1891fe365f187e2.zip
GH-2238 fix issues with whitespace/newlines in folder and instance names
Diffstat (limited to 'api/logic/FileSystem.cpp')
-rw-r--r--api/logic/FileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/FileSystem.cpp b/api/logic/FileSystem.cpp
index 7e3c1841..192d868b 100644
--- a/api/logic/FileSystem.cpp
+++ b/api/logic/FileSystem.cpp
@@ -294,7 +294,7 @@ QString NormalizePath(QString path)
}
}
-QString badFilenameChars = "\"\\/?<>:*|!+";
+QString badFilenameChars = "\"\\/?<>:*|!+\r\n";
QString RemoveInvalidFilenameChars(QString string, QChar replaceWith)
{