From 9ada5a3148caccce6824c1460d2c809d6fc9d328 Mon Sep 17 00:00:00 2001 From: JsBergbau <37013344+JsBergbau@users.noreply.github.com> Date: Tue, 8 Dec 2020 21:02:13 +0100 Subject: [PATCH] Author comments can contain linebreaks --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index f0e1114..58862eb 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -669,7 +669,7 @@ class H5PValidator { 'author' => '/^.{1,255}$/', 'log' => '/^.{1,5000}$/' ), - 'authorComments' => '/^.{1,5000}$/', + 'authorComments' => '/^.{1,5000}$/s', 'w' => '/^[0-9]{1,4}$/', 'h' => '/^[0-9]{1,4}$/', // deprecated