Skip to content

Commit 429a6d0

Browse files
committed
Fix subject sanitisation to remove slashes from subjects
1 parent 4f3b06b commit 429a6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GChan/Helpers/Utils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal class Utils
2525
{
2626
public const string PROGRAM_NAME = "GChan";
2727

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

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

0 commit comments

Comments
 (0)