From f40cf194fd2ed713cfaa27d5c2ff9e4b350ac05f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 19 Sep 2026 18:55:06 +0200 Subject: [PATCH] fix: forbid newline characters in filenames Signed-off-by: Robin Appelman --- lib/public/Constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/Constants.php b/lib/public/Constants.php index cff1ad113366a..3c819d1f7fe8f 100644 --- a/lib/public/Constants.php +++ b/lib/public/Constants.php @@ -52,7 +52,7 @@ class Constants { * @since 8.0.0 - Updated in 9.0.0 to allow all POSIX chars since we no * longer support windows as server platform. */ - public const FILENAME_INVALID_CHARS = '\\/'; + public const FILENAME_INVALID_CHARS = "\\/\n"; /** * @since 21.0.0 – default value for autocomplete/search results limit,