mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 22:35:17 -04:00
Fix Genre/Tag with spaces getting normalized (#3731)
This commit is contained in:
@@ -18,9 +18,9 @@ public static class StringExtensions
|
||||
|
||||
// Remove all newline and control characters
|
||||
var sanitized = input
|
||||
.Replace(Environment.NewLine, "")
|
||||
.Replace("\n", "")
|
||||
.Replace("\r", "");
|
||||
.Replace(Environment.NewLine, string.Empty)
|
||||
.Replace("\n", string.Empty)
|
||||
.Replace("\r", string.Empty);
|
||||
|
||||
// Optionally remove other potentially unwanted characters
|
||||
sanitized = Regex.Replace(sanitized, @"[^\u0020-\u007E]", string.Empty); // Removes non-printable ASCII
|
||||
|
||||
Reference in New Issue
Block a user