summaryrefslogtreecommitdiff
path: root/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_data_data__document.cpp
blob: 8c6aae048dbd66498f8a1578ccc21454003c5bf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- Telegram/SourceFiles/data/data_document.cpp.orig	2019-10-07 15:58:21 UTC
+++ Telegram/SourceFiles/data/data_document.cpp
@@ -140,7 +140,7 @@ QString FileNameUnsafe(
 	name = name.replace(QRegularExpression(qsl("[\\\\\\/\\:\\*\\?\\\"\\<\\>\\|]")), qsl("_"));
 #elif defined Q_OS_MAC
 	name = name.replace(QRegularExpression(qsl("[\\:]")), qsl("_"));
-#elif defined Q_OS_LINUX
+#elif defined Q_OS_LINUX || defined Q_OS_FREEBSD
 	name = name.replace(QRegularExpression(qsl("[\\/]")), qsl("_"));
 #endif
 	if (Global::AskDownloadPath() || savingAs) {