Skip to content

Commit

Permalink
Fix subject sanitisation to remove slashes from subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
Issung committed Nov 17, 2024
1 parent 4f3b06b commit 429a6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GChan/Helpers/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal class Utils
{
public const string PROGRAM_NAME = "GChan";

public static readonly char[] IllegalSubjectCharacters = Path.GetInvalidPathChars();
public static readonly char[] IllegalSubjectCharacters = [..Path.GetInvalidPathChars(), '/', '\\'];
public static readonly char[] IllegalFilenameCharacters = Path.GetInvalidFileNameChars();

private static readonly ILogger logger = LogManager.GetCurrentClassLogger();
Expand Down

0 comments on commit 429a6d0

Please sign in to comment.