Fix newline characters being stripped from emails

This commit is contained in:
Gent S
2020-12-13 20:18:36 -05:00
parent c8ff130b78
commit 156e9bf902
2 changed files with 2 additions and 2 deletions

View File

@@ -936,7 +936,7 @@ std::string ChatManager::sanitizeText(std::string text, bool allowNewlines) {
if (!allowNewlines && c == '\n')
continue;
if (c >= ' ' && c <= '~')
if (c >= ' ' && c <= '~' || c == '\n')
buf[i++] = c;
}
buf[i] = 0;