mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-01-10 02:40:46 +00:00
Fix newline characters being stripped from emails
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user