diff --git a/Fika.Core/FikaPlugin.cs b/Fika.Core/FikaPlugin.cs index 9089d3f6..d68a5cab 100644 --- a/Fika.Core/FikaPlugin.cs +++ b/Fika.Core/FikaPlugin.cs @@ -455,12 +455,14 @@ public IEnumerator WaitForLocales(Task __result) private string CleanConfigString(string header) { + string original = string.Copy(header); string[] forbiddenChars = ["\n", "\t", "\\", "\"", "'", "[", "]"]; - foreach (string item in forbiddenChars) + foreach (string character in forbiddenChars) { - if (header.Contains(item)) + if (header.Contains(character)) { - header.Replace(item, ""); + FikaLogger.LogWarning($"Header {original} contains an illegal character: {character}\nReport this to the developers!"); + header.Replace(character, ""); } }